@transferwise/components 0.0.0-experimental-1059ea7 → 0.0.0-experimental-968b066
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 +12 -1
- package/build/styles/main.css +12 -1
- package/build/styles/statusIcon/StatusIcon.css +12 -1
- package/package.json +3 -3
- package/src/main.css +12 -1
- package/src/statusIcon/StatusIcon.css +12 -1
- package/src/statusIcon/StatusIcon.less +11 -1
- package/src/statusIcon/StatusIcon.story.tsx +37 -30
package/build/main.css
CHANGED
|
@@ -4439,7 +4439,10 @@ html:not([dir="rtl"]) .np-navigation-option {
|
|
|
4439
4439
|
}
|
|
4440
4440
|
}
|
|
4441
4441
|
.status-circle .light {
|
|
4442
|
-
color: var(--color-contrast);
|
|
4442
|
+
color: var(--color-contrast-overlay);
|
|
4443
|
+
}
|
|
4444
|
+
.np-theme-personal--bright-green .status-circle .light {
|
|
4445
|
+
color: var(--color-white);
|
|
4443
4446
|
}
|
|
4444
4447
|
.status-circle .dark {
|
|
4445
4448
|
color: #37517e;
|
|
@@ -4457,6 +4460,10 @@ html:not([dir="rtl"]) .np-navigation-option {
|
|
|
4457
4460
|
.status-circle.error {
|
|
4458
4461
|
background-color: var(--color-sentiment-negative);
|
|
4459
4462
|
}
|
|
4463
|
+
.status-circle.negative .status-icon,
|
|
4464
|
+
.status-circle.error .status-icon {
|
|
4465
|
+
color: var(--color-sentiment-negative-secondary);
|
|
4466
|
+
}
|
|
4460
4467
|
.status-circle.neutral {
|
|
4461
4468
|
background-color: #5d7079;
|
|
4462
4469
|
background-color: var(--color-content-secondary);
|
|
@@ -4465,6 +4472,10 @@ html:not([dir="rtl"]) .np-navigation-option {
|
|
|
4465
4472
|
.status-circle.success {
|
|
4466
4473
|
background-color: var(--color-sentiment-positive);
|
|
4467
4474
|
}
|
|
4475
|
+
.status-circle.positive .status-icon,
|
|
4476
|
+
.status-circle.success .status-icon {
|
|
4477
|
+
color: var(--color-sentiment-positive-secondary);
|
|
4478
|
+
}
|
|
4468
4479
|
.tw-stepper {
|
|
4469
4480
|
padding-bottom: 24px;
|
|
4470
4481
|
width: 100%;
|
package/build/styles/main.css
CHANGED
|
@@ -4439,7 +4439,10 @@ html:not([dir="rtl"]) .np-navigation-option {
|
|
|
4439
4439
|
}
|
|
4440
4440
|
}
|
|
4441
4441
|
.status-circle .light {
|
|
4442
|
-
color: var(--color-contrast);
|
|
4442
|
+
color: var(--color-contrast-overlay);
|
|
4443
|
+
}
|
|
4444
|
+
.np-theme-personal--bright-green .status-circle .light {
|
|
4445
|
+
color: var(--color-white);
|
|
4443
4446
|
}
|
|
4444
4447
|
.status-circle .dark {
|
|
4445
4448
|
color: #37517e;
|
|
@@ -4457,6 +4460,10 @@ html:not([dir="rtl"]) .np-navigation-option {
|
|
|
4457
4460
|
.status-circle.error {
|
|
4458
4461
|
background-color: var(--color-sentiment-negative);
|
|
4459
4462
|
}
|
|
4463
|
+
.status-circle.negative .status-icon,
|
|
4464
|
+
.status-circle.error .status-icon {
|
|
4465
|
+
color: var(--color-sentiment-negative-secondary);
|
|
4466
|
+
}
|
|
4460
4467
|
.status-circle.neutral {
|
|
4461
4468
|
background-color: #5d7079;
|
|
4462
4469
|
background-color: var(--color-content-secondary);
|
|
@@ -4465,6 +4472,10 @@ html:not([dir="rtl"]) .np-navigation-option {
|
|
|
4465
4472
|
.status-circle.success {
|
|
4466
4473
|
background-color: var(--color-sentiment-positive);
|
|
4467
4474
|
}
|
|
4475
|
+
.status-circle.positive .status-icon,
|
|
4476
|
+
.status-circle.success .status-icon {
|
|
4477
|
+
color: var(--color-sentiment-positive-secondary);
|
|
4478
|
+
}
|
|
4468
4479
|
.tw-stepper {
|
|
4469
4480
|
padding-bottom: 24px;
|
|
4470
4481
|
width: 100%;
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
.status-circle .light {
|
|
2
|
-
color: var(--color-contrast);
|
|
2
|
+
color: var(--color-contrast-overlay);
|
|
3
|
+
}
|
|
4
|
+
.np-theme-personal--bright-green .status-circle .light {
|
|
5
|
+
color: var(--color-white);
|
|
3
6
|
}
|
|
4
7
|
.status-circle .dark {
|
|
5
8
|
color: #37517e;
|
|
@@ -17,6 +20,10 @@
|
|
|
17
20
|
.status-circle.error {
|
|
18
21
|
background-color: var(--color-sentiment-negative);
|
|
19
22
|
}
|
|
23
|
+
.status-circle.negative .status-icon,
|
|
24
|
+
.status-circle.error .status-icon {
|
|
25
|
+
color: var(--color-sentiment-negative-secondary);
|
|
26
|
+
}
|
|
20
27
|
.status-circle.neutral {
|
|
21
28
|
background-color: #5d7079;
|
|
22
29
|
background-color: var(--color-content-secondary);
|
|
@@ -25,3 +32,7 @@
|
|
|
25
32
|
.status-circle.success {
|
|
26
33
|
background-color: var(--color-sentiment-positive);
|
|
27
34
|
}
|
|
35
|
+
.status-circle.positive .status-icon,
|
|
36
|
+
.status-circle.success .status-icon {
|
|
37
|
+
color: var(--color-sentiment-positive-secondary);
|
|
38
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@transferwise/components",
|
|
3
|
-
"version": "0.0.0-experimental-
|
|
3
|
+
"version": "0.0.0-experimental-968b066",
|
|
4
4
|
"description": "Neptune React components",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -95,13 +95,13 @@
|
|
|
95
95
|
"rollup-preserve-directives": "^1.1.1",
|
|
96
96
|
"storybook": "^8.2.2",
|
|
97
97
|
"@transferwise/less-config": "3.1.1",
|
|
98
|
-
"@transferwise/neptune-css": "0.0.0-experimental-
|
|
98
|
+
"@transferwise/neptune-css": "0.0.0-experimental-968b066",
|
|
99
99
|
"@wise/components-theming": "1.6.2",
|
|
100
100
|
"@wise/wds-configs": "0.0.0"
|
|
101
101
|
},
|
|
102
102
|
"peerDependencies": {
|
|
103
103
|
"@transferwise/icons": "^3.20.0",
|
|
104
|
-
"@transferwise/neptune-css": "0.0.0-experimental-
|
|
104
|
+
"@transferwise/neptune-css": "0.0.0-experimental-968b066",
|
|
105
105
|
"@wise/art": "^2.16",
|
|
106
106
|
"@wise/components-theming": "^1.0.0",
|
|
107
107
|
"react": ">=18",
|
package/src/main.css
CHANGED
|
@@ -4439,7 +4439,10 @@ html:not([dir="rtl"]) .np-navigation-option {
|
|
|
4439
4439
|
}
|
|
4440
4440
|
}
|
|
4441
4441
|
.status-circle .light {
|
|
4442
|
-
color: var(--color-contrast);
|
|
4442
|
+
color: var(--color-contrast-overlay);
|
|
4443
|
+
}
|
|
4444
|
+
.np-theme-personal--bright-green .status-circle .light {
|
|
4445
|
+
color: var(--color-white);
|
|
4443
4446
|
}
|
|
4444
4447
|
.status-circle .dark {
|
|
4445
4448
|
color: #37517e;
|
|
@@ -4457,6 +4460,10 @@ html:not([dir="rtl"]) .np-navigation-option {
|
|
|
4457
4460
|
.status-circle.error {
|
|
4458
4461
|
background-color: var(--color-sentiment-negative);
|
|
4459
4462
|
}
|
|
4463
|
+
.status-circle.negative .status-icon,
|
|
4464
|
+
.status-circle.error .status-icon {
|
|
4465
|
+
color: var(--color-sentiment-negative-secondary);
|
|
4466
|
+
}
|
|
4460
4467
|
.status-circle.neutral {
|
|
4461
4468
|
background-color: #5d7079;
|
|
4462
4469
|
background-color: var(--color-content-secondary);
|
|
@@ -4465,6 +4472,10 @@ html:not([dir="rtl"]) .np-navigation-option {
|
|
|
4465
4472
|
.status-circle.success {
|
|
4466
4473
|
background-color: var(--color-sentiment-positive);
|
|
4467
4474
|
}
|
|
4475
|
+
.status-circle.positive .status-icon,
|
|
4476
|
+
.status-circle.success .status-icon {
|
|
4477
|
+
color: var(--color-sentiment-positive-secondary);
|
|
4478
|
+
}
|
|
4468
4479
|
.tw-stepper {
|
|
4469
4480
|
padding-bottom: 24px;
|
|
4470
4481
|
width: 100%;
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
.status-circle .light {
|
|
2
|
-
color: var(--color-contrast);
|
|
2
|
+
color: var(--color-contrast-overlay);
|
|
3
|
+
}
|
|
4
|
+
.np-theme-personal--bright-green .status-circle .light {
|
|
5
|
+
color: var(--color-white);
|
|
3
6
|
}
|
|
4
7
|
.status-circle .dark {
|
|
5
8
|
color: #37517e;
|
|
@@ -17,6 +20,10 @@
|
|
|
17
20
|
.status-circle.error {
|
|
18
21
|
background-color: var(--color-sentiment-negative);
|
|
19
22
|
}
|
|
23
|
+
.status-circle.negative .status-icon,
|
|
24
|
+
.status-circle.error .status-icon {
|
|
25
|
+
color: var(--color-sentiment-negative-secondary);
|
|
26
|
+
}
|
|
20
27
|
.status-circle.neutral {
|
|
21
28
|
background-color: #5d7079;
|
|
22
29
|
background-color: var(--color-content-secondary);
|
|
@@ -25,3 +32,7 @@
|
|
|
25
32
|
.status-circle.success {
|
|
26
33
|
background-color: var(--color-sentiment-positive);
|
|
27
34
|
}
|
|
35
|
+
.status-circle.positive .status-icon,
|
|
36
|
+
.status-circle.success .status-icon {
|
|
37
|
+
color: var(--color-sentiment-positive-secondary);
|
|
38
|
+
}
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
.status-circle {
|
|
2
2
|
.light {
|
|
3
|
-
color: var(--color-contrast);
|
|
3
|
+
color: var(--color-contrast-overlay);
|
|
4
|
+
|
|
5
|
+
.np-theme-personal--bright-green & {
|
|
6
|
+
color: var(--color-white);
|
|
7
|
+
}
|
|
4
8
|
}
|
|
5
9
|
|
|
6
10
|
.dark {
|
|
@@ -22,6 +26,9 @@
|
|
|
22
26
|
.status-circle.negative,
|
|
23
27
|
.status-circle.error {
|
|
24
28
|
background-color: var(--color-sentiment-negative);
|
|
29
|
+
.status-icon {
|
|
30
|
+
color: var(--color-sentiment-negative-secondary);
|
|
31
|
+
}
|
|
25
32
|
}
|
|
26
33
|
|
|
27
34
|
.status-circle.neutral {
|
|
@@ -31,4 +38,7 @@
|
|
|
31
38
|
.status-circle.positive,
|
|
32
39
|
.status-circle.success {
|
|
33
40
|
background-color: var(--color-sentiment-positive);
|
|
41
|
+
.status-icon {
|
|
42
|
+
color: var(--color-sentiment-positive-secondary);
|
|
43
|
+
}
|
|
34
44
|
}
|
|
@@ -3,6 +3,7 @@ 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';
|
|
6
7
|
|
|
7
8
|
export default {
|
|
8
9
|
component: StatusIcon,
|
|
@@ -28,36 +29,42 @@ export const Presentational: Story = {
|
|
|
28
29
|
},
|
|
29
30
|
};
|
|
30
31
|
|
|
31
|
-
export const Variants
|
|
32
|
-
|
|
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
|
-
|
|
32
|
+
export const Variants = storyConfig(
|
|
33
|
+
{
|
|
34
|
+
parameters: {
|
|
35
|
+
padding: '0',
|
|
36
|
+
},
|
|
37
|
+
render: () => (
|
|
38
|
+
<span style={{ display: 'flex', justifyContent: 'space-between', maxWidth: '400px' }}>
|
|
39
|
+
{[
|
|
40
|
+
Sentiment.POSITIVE,
|
|
41
|
+
Sentiment.NEGATIVE,
|
|
42
|
+
Sentiment.WARNING,
|
|
43
|
+
Sentiment.NEUTRAL,
|
|
44
|
+
Sentiment.PENDING,
|
|
45
|
+
].map((sentiment) => {
|
|
46
|
+
return (
|
|
47
|
+
<span
|
|
48
|
+
key={sentiment}
|
|
49
|
+
style={{
|
|
50
|
+
display: 'flex',
|
|
51
|
+
justifyContent: 'space-between',
|
|
52
|
+
flexDirection: 'column',
|
|
53
|
+
minHeight: '150px',
|
|
54
|
+
alignItems: 'center',
|
|
55
|
+
}}
|
|
56
|
+
>
|
|
57
|
+
{([16, 24, 32, 40, 48, 56, 72] as const).map((size) => {
|
|
58
|
+
return <StatusIcon key={size} size={size} sentiment={sentiment} />;
|
|
59
|
+
})}
|
|
60
|
+
</span>
|
|
61
|
+
);
|
|
62
|
+
})}
|
|
63
|
+
</span>
|
|
64
|
+
),
|
|
65
|
+
},
|
|
66
|
+
{ variants: ['default', 'dark', 'bright-green', 'forest-green'] },
|
|
67
|
+
);
|
|
61
68
|
|
|
62
69
|
export const LegacySizes: Story = {
|
|
63
70
|
render: () => (
|