@transferwise/components 46.96.0 → 46.96.1
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 +16 -1
- package/build/styles/inputs/Input.css +2 -0
- package/build/styles/inputs/TextArea.css +2 -0
- package/build/styles/main.css +16 -1
- package/build/styles/popover/Popover.css +2 -0
- package/build/styles/statusIcon/StatusIcon.css +12 -1
- package/package.json +2 -2
- package/src/inputs/Input.css +2 -0
- package/src/inputs/TextArea.css +2 -0
- package/src/main.css +16 -1
- package/src/popover/Popover.css +2 -0
- 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 +25 -0
package/build/main.css
CHANGED
|
@@ -2585,6 +2585,8 @@ 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;
|
|
2588
2590
|
margin-bottom: 0;
|
|
2589
2591
|
margin-bottom: initial;
|
|
2590
2592
|
font-size: 1.375rem;
|
|
@@ -4021,6 +4023,8 @@ html:not([dir="rtl"]) .np-navigation-option {
|
|
|
4021
4023
|
line-height: 1.2;
|
|
4022
4024
|
line-height: var(--line-height-title);
|
|
4023
4025
|
letter-spacing: 0;
|
|
4026
|
+
-webkit-hyphens: auto;
|
|
4027
|
+
hyphens: auto;
|
|
4024
4028
|
margin-bottom: 0;
|
|
4025
4029
|
margin-bottom: initial;
|
|
4026
4030
|
font-weight: 600;
|
|
@@ -4435,7 +4439,10 @@ html:not([dir="rtl"]) .np-navigation-option {
|
|
|
4435
4439
|
}
|
|
4436
4440
|
}
|
|
4437
4441
|
.status-circle .light {
|
|
4438
|
-
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);
|
|
4439
4446
|
}
|
|
4440
4447
|
.status-circle .dark {
|
|
4441
4448
|
color: #37517e;
|
|
@@ -4453,6 +4460,10 @@ html:not([dir="rtl"]) .np-navigation-option {
|
|
|
4453
4460
|
.status-circle.error {
|
|
4454
4461
|
background-color: var(--color-sentiment-negative);
|
|
4455
4462
|
}
|
|
4463
|
+
.status-circle.negative .status-icon,
|
|
4464
|
+
.status-circle.error .status-icon {
|
|
4465
|
+
color: var(--color-sentiment-negative-secondary);
|
|
4466
|
+
}
|
|
4456
4467
|
.status-circle.neutral {
|
|
4457
4468
|
background-color: #5d7079;
|
|
4458
4469
|
background-color: var(--color-content-secondary);
|
|
@@ -4461,6 +4472,10 @@ html:not([dir="rtl"]) .np-navigation-option {
|
|
|
4461
4472
|
.status-circle.success {
|
|
4462
4473
|
background-color: var(--color-sentiment-positive);
|
|
4463
4474
|
}
|
|
4475
|
+
.status-circle.positive .status-icon,
|
|
4476
|
+
.status-circle.success .status-icon {
|
|
4477
|
+
color: var(--color-sentiment-positive-secondary);
|
|
4478
|
+
}
|
|
4464
4479
|
.tw-stepper {
|
|
4465
4480
|
padding-bottom: 24px;
|
|
4466
4481
|
width: 100%;
|
package/build/styles/main.css
CHANGED
|
@@ -2585,6 +2585,8 @@ 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;
|
|
2588
2590
|
margin-bottom: 0;
|
|
2589
2591
|
margin-bottom: initial;
|
|
2590
2592
|
font-size: 1.375rem;
|
|
@@ -4021,6 +4023,8 @@ html:not([dir="rtl"]) .np-navigation-option {
|
|
|
4021
4023
|
line-height: 1.2;
|
|
4022
4024
|
line-height: var(--line-height-title);
|
|
4023
4025
|
letter-spacing: 0;
|
|
4026
|
+
-webkit-hyphens: auto;
|
|
4027
|
+
hyphens: auto;
|
|
4024
4028
|
margin-bottom: 0;
|
|
4025
4029
|
margin-bottom: initial;
|
|
4026
4030
|
font-weight: 600;
|
|
@@ -4435,7 +4439,10 @@ html:not([dir="rtl"]) .np-navigation-option {
|
|
|
4435
4439
|
}
|
|
4436
4440
|
}
|
|
4437
4441
|
.status-circle .light {
|
|
4438
|
-
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);
|
|
4439
4446
|
}
|
|
4440
4447
|
.status-circle .dark {
|
|
4441
4448
|
color: #37517e;
|
|
@@ -4453,6 +4460,10 @@ html:not([dir="rtl"]) .np-navigation-option {
|
|
|
4453
4460
|
.status-circle.error {
|
|
4454
4461
|
background-color: var(--color-sentiment-negative);
|
|
4455
4462
|
}
|
|
4463
|
+
.status-circle.negative .status-icon,
|
|
4464
|
+
.status-circle.error .status-icon {
|
|
4465
|
+
color: var(--color-sentiment-negative-secondary);
|
|
4466
|
+
}
|
|
4456
4467
|
.status-circle.neutral {
|
|
4457
4468
|
background-color: #5d7079;
|
|
4458
4469
|
background-color: var(--color-content-secondary);
|
|
@@ -4461,6 +4472,10 @@ html:not([dir="rtl"]) .np-navigation-option {
|
|
|
4461
4472
|
.status-circle.success {
|
|
4462
4473
|
background-color: var(--color-sentiment-positive);
|
|
4463
4474
|
}
|
|
4475
|
+
.status-circle.positive .status-icon,
|
|
4476
|
+
.status-circle.success .status-icon {
|
|
4477
|
+
color: var(--color-sentiment-positive-secondary);
|
|
4478
|
+
}
|
|
4464
4479
|
.tw-stepper {
|
|
4465
4480
|
padding-bottom: 24px;
|
|
4466
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": "46.96.
|
|
3
|
+
"version": "46.96.1",
|
|
4
4
|
"description": "Neptune React components",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -95,8 +95,8 @@
|
|
|
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": "14.24.3",
|
|
98
99
|
"@wise/components-theming": "1.6.2",
|
|
99
|
-
"@transferwise/neptune-css": "14.24.2",
|
|
100
100
|
"@wise/wds-configs": "0.0.0"
|
|
101
101
|
},
|
|
102
102
|
"peerDependencies": {
|
package/src/inputs/Input.css
CHANGED
package/src/inputs/TextArea.css
CHANGED
package/src/main.css
CHANGED
|
@@ -2585,6 +2585,8 @@ 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;
|
|
2588
2590
|
margin-bottom: 0;
|
|
2589
2591
|
margin-bottom: initial;
|
|
2590
2592
|
font-size: 1.375rem;
|
|
@@ -4021,6 +4023,8 @@ html:not([dir="rtl"]) .np-navigation-option {
|
|
|
4021
4023
|
line-height: 1.2;
|
|
4022
4024
|
line-height: var(--line-height-title);
|
|
4023
4025
|
letter-spacing: 0;
|
|
4026
|
+
-webkit-hyphens: auto;
|
|
4027
|
+
hyphens: auto;
|
|
4024
4028
|
margin-bottom: 0;
|
|
4025
4029
|
margin-bottom: initial;
|
|
4026
4030
|
font-weight: 600;
|
|
@@ -4435,7 +4439,10 @@ html:not([dir="rtl"]) .np-navigation-option {
|
|
|
4435
4439
|
}
|
|
4436
4440
|
}
|
|
4437
4441
|
.status-circle .light {
|
|
4438
|
-
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);
|
|
4439
4446
|
}
|
|
4440
4447
|
.status-circle .dark {
|
|
4441
4448
|
color: #37517e;
|
|
@@ -4453,6 +4460,10 @@ html:not([dir="rtl"]) .np-navigation-option {
|
|
|
4453
4460
|
.status-circle.error {
|
|
4454
4461
|
background-color: var(--color-sentiment-negative);
|
|
4455
4462
|
}
|
|
4463
|
+
.status-circle.negative .status-icon,
|
|
4464
|
+
.status-circle.error .status-icon {
|
|
4465
|
+
color: var(--color-sentiment-negative-secondary);
|
|
4466
|
+
}
|
|
4456
4467
|
.status-circle.neutral {
|
|
4457
4468
|
background-color: #5d7079;
|
|
4458
4469
|
background-color: var(--color-content-secondary);
|
|
@@ -4461,6 +4472,10 @@ html:not([dir="rtl"]) .np-navigation-option {
|
|
|
4461
4472
|
.status-circle.success {
|
|
4462
4473
|
background-color: var(--color-sentiment-positive);
|
|
4463
4474
|
}
|
|
4475
|
+
.status-circle.positive .status-icon,
|
|
4476
|
+
.status-circle.success .status-icon {
|
|
4477
|
+
color: var(--color-sentiment-positive-secondary);
|
|
4478
|
+
}
|
|
4464
4479
|
.tw-stepper {
|
|
4465
4480
|
padding-bottom: 24px;
|
|
4466
4481
|
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: () => (
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { Typography } from '../common/propsValues/typography';
|
|
2
|
+
import Modal from '../modal';
|
|
3
|
+
import { lorem1000 } from '../test-utils';
|
|
4
|
+
|
|
5
|
+
import Title from './Title';
|
|
6
|
+
|
|
7
|
+
export default {
|
|
8
|
+
component: Title,
|
|
9
|
+
title: 'Typography/Title/Tests',
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
export const Hyphenation = () => {
|
|
13
|
+
return (
|
|
14
|
+
<Modal
|
|
15
|
+
open
|
|
16
|
+
body={
|
|
17
|
+
<Title type={Typography.TITLE_SCREEN} style={{ maxWidth: '600px' }}>
|
|
18
|
+
This Screen Title is mostly one very long word and it hyphenates{' '}
|
|
19
|
+
{lorem1000.replaceAll(' ', '')}
|
|
20
|
+
</Title>
|
|
21
|
+
}
|
|
22
|
+
onClose={() => {}}
|
|
23
|
+
/>
|
|
24
|
+
);
|
|
25
|
+
};
|