@transferwise/components 0.0.0-experimental-07c2308 → 0.0.0-experimental-ab6afdf
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 -5
- package/build/styles/inputs/Input.css +0 -2
- package/build/styles/inputs/TextArea.css +0 -2
- package/build/styles/main.css +12 -5
- package/build/styles/popover/Popover.css +0 -2
- package/build/styles/statusIcon/StatusIcon.css +12 -1
- package/package.json +3 -3
- package/src/inputs/Input.css +0 -2
- package/src/inputs/TextArea.css +0 -2
- package/src/main.css +12 -5
- package/src/popover/Popover.css +0 -2
- package/src/statusIcon/StatusIcon.css +12 -1
- package/src/statusIcon/StatusIcon.less +11 -1
- package/src/statusIcon/StatusIcon.story.tsx +37 -30
- package/src/title/Title.test.story.tsx +0 -18
package/build/main.css
CHANGED
|
@@ -2585,8 +2585,6 @@ html:not([dir="rtl"]) .np-flow-navigation--sm .np-flow-navigation__stepper {
|
|
|
2585
2585
|
line-height: 1.2;
|
|
2586
2586
|
line-height: var(--line-height-title);
|
|
2587
2587
|
letter-spacing: 0;
|
|
2588
|
-
-webkit-hyphens: auto;
|
|
2589
|
-
hyphens: auto;
|
|
2590
2588
|
margin-bottom: 0;
|
|
2591
2589
|
margin-bottom: initial;
|
|
2592
2590
|
font-size: 1.375rem;
|
|
@@ -4023,8 +4021,6 @@ html:not([dir="rtl"]) .np-navigation-option {
|
|
|
4023
4021
|
line-height: 1.2;
|
|
4024
4022
|
line-height: var(--line-height-title);
|
|
4025
4023
|
letter-spacing: 0;
|
|
4026
|
-
-webkit-hyphens: auto;
|
|
4027
|
-
hyphens: auto;
|
|
4028
4024
|
margin-bottom: 0;
|
|
4029
4025
|
margin-bottom: initial;
|
|
4030
4026
|
font-weight: 600;
|
|
@@ -4439,7 +4435,10 @@ html:not([dir="rtl"]) .np-navigation-option {
|
|
|
4439
4435
|
}
|
|
4440
4436
|
}
|
|
4441
4437
|
.status-circle .light {
|
|
4442
|
-
color: var(--color-contrast);
|
|
4438
|
+
color: var(--color-contrast-overlay);
|
|
4439
|
+
}
|
|
4440
|
+
.np-theme-personal--bright-green .status-circle .light {
|
|
4441
|
+
color: var(--color-white);
|
|
4443
4442
|
}
|
|
4444
4443
|
.status-circle .dark {
|
|
4445
4444
|
color: #37517e;
|
|
@@ -4457,6 +4456,10 @@ html:not([dir="rtl"]) .np-navigation-option {
|
|
|
4457
4456
|
.status-circle.error {
|
|
4458
4457
|
background-color: var(--color-sentiment-negative);
|
|
4459
4458
|
}
|
|
4459
|
+
.status-circle.negative .status-icon,
|
|
4460
|
+
.status-circle.error .status-icon {
|
|
4461
|
+
color: var(--color-sentiment-negative-secondary);
|
|
4462
|
+
}
|
|
4460
4463
|
.status-circle.neutral {
|
|
4461
4464
|
background-color: #5d7079;
|
|
4462
4465
|
background-color: var(--color-content-secondary);
|
|
@@ -4465,6 +4468,10 @@ html:not([dir="rtl"]) .np-navigation-option {
|
|
|
4465
4468
|
.status-circle.success {
|
|
4466
4469
|
background-color: var(--color-sentiment-positive);
|
|
4467
4470
|
}
|
|
4471
|
+
.status-circle.positive .status-icon,
|
|
4472
|
+
.status-circle.success .status-icon {
|
|
4473
|
+
color: var(--color-sentiment-positive-secondary);
|
|
4474
|
+
}
|
|
4468
4475
|
.tw-stepper {
|
|
4469
4476
|
padding-bottom: 24px;
|
|
4470
4477
|
width: 100%;
|
package/build/styles/main.css
CHANGED
|
@@ -2585,8 +2585,6 @@ html:not([dir="rtl"]) .np-flow-navigation--sm .np-flow-navigation__stepper {
|
|
|
2585
2585
|
line-height: 1.2;
|
|
2586
2586
|
line-height: var(--line-height-title);
|
|
2587
2587
|
letter-spacing: 0;
|
|
2588
|
-
-webkit-hyphens: auto;
|
|
2589
|
-
hyphens: auto;
|
|
2590
2588
|
margin-bottom: 0;
|
|
2591
2589
|
margin-bottom: initial;
|
|
2592
2590
|
font-size: 1.375rem;
|
|
@@ -4023,8 +4021,6 @@ html:not([dir="rtl"]) .np-navigation-option {
|
|
|
4023
4021
|
line-height: 1.2;
|
|
4024
4022
|
line-height: var(--line-height-title);
|
|
4025
4023
|
letter-spacing: 0;
|
|
4026
|
-
-webkit-hyphens: auto;
|
|
4027
|
-
hyphens: auto;
|
|
4028
4024
|
margin-bottom: 0;
|
|
4029
4025
|
margin-bottom: initial;
|
|
4030
4026
|
font-weight: 600;
|
|
@@ -4439,7 +4435,10 @@ html:not([dir="rtl"]) .np-navigation-option {
|
|
|
4439
4435
|
}
|
|
4440
4436
|
}
|
|
4441
4437
|
.status-circle .light {
|
|
4442
|
-
color: var(--color-contrast);
|
|
4438
|
+
color: var(--color-contrast-overlay);
|
|
4439
|
+
}
|
|
4440
|
+
.np-theme-personal--bright-green .status-circle .light {
|
|
4441
|
+
color: var(--color-white);
|
|
4443
4442
|
}
|
|
4444
4443
|
.status-circle .dark {
|
|
4445
4444
|
color: #37517e;
|
|
@@ -4457,6 +4456,10 @@ html:not([dir="rtl"]) .np-navigation-option {
|
|
|
4457
4456
|
.status-circle.error {
|
|
4458
4457
|
background-color: var(--color-sentiment-negative);
|
|
4459
4458
|
}
|
|
4459
|
+
.status-circle.negative .status-icon,
|
|
4460
|
+
.status-circle.error .status-icon {
|
|
4461
|
+
color: var(--color-sentiment-negative-secondary);
|
|
4462
|
+
}
|
|
4460
4463
|
.status-circle.neutral {
|
|
4461
4464
|
background-color: #5d7079;
|
|
4462
4465
|
background-color: var(--color-content-secondary);
|
|
@@ -4465,6 +4468,10 @@ html:not([dir="rtl"]) .np-navigation-option {
|
|
|
4465
4468
|
.status-circle.success {
|
|
4466
4469
|
background-color: var(--color-sentiment-positive);
|
|
4467
4470
|
}
|
|
4471
|
+
.status-circle.positive .status-icon,
|
|
4472
|
+
.status-circle.success .status-icon {
|
|
4473
|
+
color: var(--color-sentiment-positive-secondary);
|
|
4474
|
+
}
|
|
4468
4475
|
.tw-stepper {
|
|
4469
4476
|
padding-bottom: 24px;
|
|
4470
4477
|
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-ab6afdf",
|
|
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": "
|
|
98
|
+
"@transferwise/neptune-css": "14.24.2",
|
|
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": "
|
|
104
|
+
"@transferwise/neptune-css": "^14.24",
|
|
105
105
|
"@wise/art": "^2.16",
|
|
106
106
|
"@wise/components-theming": "^1.0.0",
|
|
107
107
|
"react": ">=18",
|
package/src/inputs/Input.css
CHANGED
package/src/inputs/TextArea.css
CHANGED
package/src/main.css
CHANGED
|
@@ -2585,8 +2585,6 @@ html:not([dir="rtl"]) .np-flow-navigation--sm .np-flow-navigation__stepper {
|
|
|
2585
2585
|
line-height: 1.2;
|
|
2586
2586
|
line-height: var(--line-height-title);
|
|
2587
2587
|
letter-spacing: 0;
|
|
2588
|
-
-webkit-hyphens: auto;
|
|
2589
|
-
hyphens: auto;
|
|
2590
2588
|
margin-bottom: 0;
|
|
2591
2589
|
margin-bottom: initial;
|
|
2592
2590
|
font-size: 1.375rem;
|
|
@@ -4023,8 +4021,6 @@ html:not([dir="rtl"]) .np-navigation-option {
|
|
|
4023
4021
|
line-height: 1.2;
|
|
4024
4022
|
line-height: var(--line-height-title);
|
|
4025
4023
|
letter-spacing: 0;
|
|
4026
|
-
-webkit-hyphens: auto;
|
|
4027
|
-
hyphens: auto;
|
|
4028
4024
|
margin-bottom: 0;
|
|
4029
4025
|
margin-bottom: initial;
|
|
4030
4026
|
font-weight: 600;
|
|
@@ -4439,7 +4435,10 @@ html:not([dir="rtl"]) .np-navigation-option {
|
|
|
4439
4435
|
}
|
|
4440
4436
|
}
|
|
4441
4437
|
.status-circle .light {
|
|
4442
|
-
color: var(--color-contrast);
|
|
4438
|
+
color: var(--color-contrast-overlay);
|
|
4439
|
+
}
|
|
4440
|
+
.np-theme-personal--bright-green .status-circle .light {
|
|
4441
|
+
color: var(--color-white);
|
|
4443
4442
|
}
|
|
4444
4443
|
.status-circle .dark {
|
|
4445
4444
|
color: #37517e;
|
|
@@ -4457,6 +4456,10 @@ html:not([dir="rtl"]) .np-navigation-option {
|
|
|
4457
4456
|
.status-circle.error {
|
|
4458
4457
|
background-color: var(--color-sentiment-negative);
|
|
4459
4458
|
}
|
|
4459
|
+
.status-circle.negative .status-icon,
|
|
4460
|
+
.status-circle.error .status-icon {
|
|
4461
|
+
color: var(--color-sentiment-negative-secondary);
|
|
4462
|
+
}
|
|
4460
4463
|
.status-circle.neutral {
|
|
4461
4464
|
background-color: #5d7079;
|
|
4462
4465
|
background-color: var(--color-content-secondary);
|
|
@@ -4465,6 +4468,10 @@ html:not([dir="rtl"]) .np-navigation-option {
|
|
|
4465
4468
|
.status-circle.success {
|
|
4466
4469
|
background-color: var(--color-sentiment-positive);
|
|
4467
4470
|
}
|
|
4471
|
+
.status-circle.positive .status-icon,
|
|
4472
|
+
.status-circle.success .status-icon {
|
|
4473
|
+
color: var(--color-sentiment-positive-secondary);
|
|
4474
|
+
}
|
|
4468
4475
|
.tw-stepper {
|
|
4469
4476
|
padding-bottom: 24px;
|
|
4470
4477
|
width: 100%;
|
package/src/popover/Popover.css
CHANGED
|
@@ -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: () => (
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { Typography } from '../common/propsValues/typography';
|
|
2
|
-
import { lorem1000 } from '../test-utils';
|
|
3
|
-
|
|
4
|
-
import Title from './Title';
|
|
5
|
-
|
|
6
|
-
export default {
|
|
7
|
-
component: Title,
|
|
8
|
-
title: 'Typography/Title/Tests',
|
|
9
|
-
};
|
|
10
|
-
|
|
11
|
-
export const Hyphenation = () => {
|
|
12
|
-
return (
|
|
13
|
-
<Title type={Typography.TITLE_SCREEN}>
|
|
14
|
-
This Screen Title is mostly one very long word and it hyphenates{' '}
|
|
15
|
-
{lorem1000.replaceAll(' ', '')}
|
|
16
|
-
</Title>
|
|
17
|
-
);
|
|
18
|
-
};
|