@transferwise/components 0.0.0-experimental-536d239 → 0.0.0-experimental-6e04f56
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/Snackbar/Snackbar.js +98 -101
- package/build/Snackbar/Snackbar.js.map +1 -1
- package/build/Snackbar/Snackbar.mjs +99 -102
- package/build/Snackbar/Snackbar.mjs.map +1 -1
- package/build/main.css +1530 -2883
- package/build/styles/Inputs/Input/Input.css +28 -62
- package/build/styles/Inputs/TextArea/TextArea.css +28 -62
- package/build/styles/Popover/Popover.css +9 -3
- package/build/styles/_deprecated/Select/Select.css +7 -27
- package/build/styles/css/accordion.css +52 -23
- package/build/styles/css/button-groups.css +8 -29
- package/build/styles/css/buttons.css +2 -26
- package/build/styles/css/decision.css +52 -23
- package/build/styles/css/dropdowns.css +62 -39
- package/build/styles/css/droppable.css +8 -28
- package/build/styles/css/footer.css +14 -41
- package/build/styles/css/input-groups.css +165 -172
- package/build/styles/css/list-group.css +45 -0
- package/build/styles/css/navbar.css +62 -39
- package/build/styles/css/neptune-addons.css +0 -15
- package/build/styles/css/neptune-core.css +526 -250
- package/build/styles/css/neptune.css +1486 -2823
- package/build/styles/css/popovers.css +60 -35
- package/build/styles/css/sequences.css +1 -6
- package/build/styles/css/tooltip.css +7 -27
- package/build/styles/less/neptune-tokens.less +48 -0
- package/build/styles/main.css +1530 -2883
- package/build/styles/props/neptune-tokens.css +1 -793
- package/build/styles/styles/less/accordion.css +52 -23
- package/build/styles/styles/less/button-groups.css +8 -29
- package/build/styles/styles/less/buttons.css +2 -26
- package/build/styles/styles/less/decision.css +52 -23
- package/build/styles/styles/less/dropdowns.css +62 -39
- package/build/styles/styles/less/droppable.css +8 -28
- package/build/styles/styles/less/footer.css +14 -41
- package/build/styles/styles/less/forms/bootstrap-forms.css +91 -137
- package/build/styles/styles/less/input-groups.css +165 -172
- package/build/styles/styles/less/list-group.css +45 -0
- package/build/styles/styles/less/navbar.css +62 -39
- package/build/styles/styles/less/neptune-addons.css +0 -15
- package/build/styles/styles/less/neptune-core.css +526 -250
- package/build/styles/styles/less/neptune.css +1486 -2823
- package/build/styles/styles/less/popovers.css +60 -35
- package/build/styles/styles/less/sequences.css +1 -6
- package/build/styles/styles/less/tooltip.css +7 -27
- package/build/types/Body/Body.d.ts +2 -2
- package/build/types/IconButton/IconButton.d.ts +1 -1
- package/build/types/MoneyInput/MoneyInput.d.ts +1 -1
- package/build/types/MoneyInput/MoneyInput.d.ts.map +1 -1
- package/build/types/Snackbar/Snackbar.d.ts +1 -15
- package/build/types/Snackbar/Snackbar.d.ts.map +1 -1
- package/build/types/Title/Title.d.ts +2 -2
- package/build/types/Upload/Steps/UploadImageStep/UploadImageStep.d.ts +1 -1
- package/build/types/UploadInput/UploadItem/UploadItemLink.d.ts +1 -1
- package/package.json +1 -1
- package/src/Inputs/Input/Input.css +28 -62
- package/src/Inputs/TextArea/TextArea.css +28 -62
- package/src/Popover/Popover.css +9 -3
- package/src/Snackbar/Snackbar.test.tsx +190 -0
- package/src/Snackbar/Snackbar.tsx +90 -88
- package/src/_deprecated/Select/Select.css +7 -27
- package/src/main.css +1530 -2883
- package/src/styles/less/accordion.css +52 -23
- package/src/styles/less/addons/_background-utilities.less +0 -5
- package/src/styles/less/button-groups.css +8 -29
- package/src/styles/less/button-groups.less +2 -3
- package/src/styles/less/buttons.css +2 -26
- package/src/styles/less/buttons.less +1 -1
- package/src/styles/less/core/_typography.less +221 -67
- package/src/styles/less/decision.css +52 -23
- package/src/styles/less/decision.less +2 -2
- package/src/styles/less/dropdowns.css +62 -39
- package/src/styles/less/dropdowns.less +5 -6
- package/src/styles/less/droppable.css +8 -28
- package/src/styles/less/droppable.less +4 -4
- package/src/styles/less/footer.css +14 -41
- package/src/styles/less/footer.less +3 -4
- package/src/styles/less/forms/bootstrap-forms.css +91 -137
- package/src/styles/less/forms/bootstrap-forms.less +57 -70
- package/src/styles/less/input-groups.css +165 -172
- package/src/styles/less/input-groups.less +5 -5
- package/src/styles/less/list-group.css +45 -0
- package/src/styles/less/list-group.less +4 -7
- package/src/styles/less/mixins/_text-emphasis.less +1 -7
- package/src/styles/less/navbar.css +62 -39
- package/src/styles/less/neptune-addons.css +0 -15
- package/src/styles/less/neptune-core.css +526 -250
- package/src/styles/less/neptune.bundle.less +0 -4
- package/src/styles/less/neptune.css +1486 -2823
- package/src/styles/less/popovers.css +60 -35
- package/src/styles/less/popovers.less +3 -3
- package/src/styles/less/sequences.css +1 -6
- package/src/styles/less/sequences.less +2 -7
- package/src/styles/less/tooltip.css +7 -27
- package/src/styles/less/tooltip.less +1 -1
|
@@ -1,36 +1,4 @@
|
|
|
1
|
-
.
|
|
2
|
-
.popover-content {
|
|
3
|
-
word-wrap: break-word;
|
|
4
|
-
}
|
|
5
|
-
@supports (hyphenate-limit-chars: 1) {
|
|
6
|
-
.popover,
|
|
7
|
-
.popover-content {
|
|
8
|
-
hyphens: auto;hyphenate-limit-chars: 7 3;
|
|
9
|
-
}
|
|
10
|
-
@media (min-width: 840px) {
|
|
11
|
-
.popover,
|
|
12
|
-
.popover-content {
|
|
13
|
-
hyphenate-limit-chars: 8 3;
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
@media (min-width: 1160px) {
|
|
17
|
-
.popover,
|
|
18
|
-
.popover-content {
|
|
19
|
-
hyphenate-limit-chars: 10 4 3;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
}@supports (not (hyphenate-limit-chars: 1)) and (-webkit-hyphenate-limit-before: 1) {
|
|
23
|
-
.popover,
|
|
24
|
-
.popover-content {
|
|
25
|
-
hyphens: auto;-webkit-hyphenate-limit-before: 3;-webkit-hyphenate-limit-after: 3;
|
|
26
|
-
}
|
|
27
|
-
@media (min-width: 1160px) {
|
|
28
|
-
.popover,
|
|
29
|
-
.popover-content {
|
|
30
|
-
-webkit-hyphenate-limit-before: 4;
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
}.close {
|
|
1
|
+
.close {
|
|
34
2
|
float: inline-end;
|
|
35
3
|
color: #0097c7;
|
|
36
4
|
color: var(--color-content-accent);
|
|
@@ -98,6 +66,12 @@ button.close {
|
|
|
98
66
|
word-break: normal;
|
|
99
67
|
word-spacing: normal;
|
|
100
68
|
word-wrap: normal;
|
|
69
|
+
font-size: 0.875rem;
|
|
70
|
+
font-size: var(--font-size-14);
|
|
71
|
+
line-height: 155%;
|
|
72
|
+
letter-spacing: -0.006em;
|
|
73
|
+
font-weight: 400;
|
|
74
|
+
font-weight: var(--font-weight-regular);
|
|
101
75
|
word-wrap: break-word;
|
|
102
76
|
background-color: #ffffff;
|
|
103
77
|
background-color: var(--color-background-screen);
|
|
@@ -284,8 +258,20 @@ button.close {
|
|
|
284
258
|
margin-inline: 0;
|
|
285
259
|
}
|
|
286
260
|
.popover-title {
|
|
287
|
-
margin: 0;
|
|
288
261
|
padding: 0;
|
|
262
|
+
margin: 0;
|
|
263
|
+
color: #37517e;
|
|
264
|
+
color: var(--color-content-primary);
|
|
265
|
+
line-height: 1.2;
|
|
266
|
+
line-height: var(--line-height-title);
|
|
267
|
+
letter-spacing: 0;
|
|
268
|
+
word-wrap: break-word;
|
|
269
|
+
font-size: 1.125rem;
|
|
270
|
+
font-size: var(--font-size-18);
|
|
271
|
+
font-weight: 600;
|
|
272
|
+
font-weight: var(--font-weight-semi-bold);
|
|
273
|
+
letter-spacing: -0.014em;
|
|
274
|
+
line-height: 135%;
|
|
289
275
|
background-color: #ffffff;
|
|
290
276
|
background-color: var(--color-background-screen);
|
|
291
277
|
border-block-end: 0;
|
|
@@ -293,11 +279,50 @@ button.close {
|
|
|
293
279
|
border-start-end-radius: 2px;
|
|
294
280
|
border-end-end-radius: 0;
|
|
295
281
|
border-end-start-radius: 0;
|
|
296
|
-
color: #37517e !important;
|
|
297
282
|
color: var(--color-content-primary) !important;
|
|
298
283
|
}
|
|
284
|
+
@supports (hyphenate-limit-chars: 1) {
|
|
285
|
+
.popover-title {
|
|
286
|
+
hyphens: auto;
|
|
287
|
+
hyphenate-limit-chars: 7 3;
|
|
288
|
+
}
|
|
289
|
+
@media (min-width: 840px) {
|
|
290
|
+
.popover-title {
|
|
291
|
+
hyphenate-limit-chars: 8 3;
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
@media (min-width: 1160px) {
|
|
295
|
+
.popover-title {
|
|
296
|
+
hyphenate-limit-chars: 10 4 3;
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
@supports (not (hyphenate-limit-chars: 1)) and (-webkit-hyphenate-limit-before: 1) {
|
|
301
|
+
.popover-title {
|
|
302
|
+
hyphens: auto;
|
|
303
|
+
-webkit-hyphenate-limit-before: 3;
|
|
304
|
+
-webkit-hyphenate-limit-after: 3;
|
|
305
|
+
}
|
|
306
|
+
@media (min-width: 1160px) {
|
|
307
|
+
.popover-title {
|
|
308
|
+
-webkit-hyphenate-limit-before: 4;
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
.popover-title + p,
|
|
313
|
+
.popover-title + ul:not(.list-unstyled),
|
|
314
|
+
.popover-title + ol:not(.list-unstyled) {
|
|
315
|
+
margin-block-start: 8px;
|
|
316
|
+
margin-block-start: var(--size-8);
|
|
317
|
+
}
|
|
299
318
|
.popover-content {
|
|
300
319
|
padding: 0;
|
|
320
|
+
font-size: 0.875rem;
|
|
321
|
+
font-size: var(--font-size-14);
|
|
322
|
+
line-height: 155%;
|
|
323
|
+
letter-spacing: -0.006em;
|
|
324
|
+
font-weight: 400;
|
|
325
|
+
font-weight: var(--font-weight-regular);
|
|
301
326
|
word-wrap: break-word;
|
|
302
327
|
color: #5d7079;
|
|
303
328
|
color: var(--color-content-secondary);
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
// So reset our font and text properties to avoid inheriting weird values.
|
|
25
25
|
.reset-text();
|
|
26
26
|
|
|
27
|
-
.
|
|
27
|
+
.np-text-body-default;
|
|
28
28
|
|
|
29
29
|
background-color: var(--color-background-screen);
|
|
30
30
|
background-clip: padding-box;
|
|
@@ -221,7 +221,7 @@
|
|
|
221
221
|
margin: 0; // reset heading margin
|
|
222
222
|
padding: 0;
|
|
223
223
|
|
|
224
|
-
.
|
|
224
|
+
.np-text-title-body();
|
|
225
225
|
|
|
226
226
|
background-color: var(--color-background-screen);
|
|
227
227
|
border-bottom: 0;
|
|
@@ -232,7 +232,7 @@
|
|
|
232
232
|
.popover-content {
|
|
233
233
|
padding: 0;
|
|
234
234
|
|
|
235
|
-
.
|
|
235
|
+
.np-text-body-default;
|
|
236
236
|
|
|
237
237
|
color: var(--color-content-secondary);
|
|
238
238
|
}
|
|
@@ -131,10 +131,6 @@
|
|
|
131
131
|
.sequence > li .h2,
|
|
132
132
|
.sequence > li .h3,
|
|
133
133
|
.sequence > li .h4,
|
|
134
|
-
.sequence > li .wds-text-title-screen,
|
|
135
|
-
.sequence > li .wds-text-title-section,
|
|
136
|
-
.sequence > li .wds-text-title-subsection,
|
|
137
|
-
.sequence > li .wds-text-title-body,
|
|
138
134
|
.sequence > li .btn-toolbar {
|
|
139
135
|
margin-block-end: 16px;
|
|
140
136
|
}
|
|
@@ -225,8 +221,7 @@
|
|
|
225
221
|
}
|
|
226
222
|
.sequence-inverse > .active .small,
|
|
227
223
|
.sequence-inverse > .active .body-2,
|
|
228
|
-
.sequence-inverse > .active .np-text-body-default
|
|
229
|
-
.sequence-inverse > .active .wds-text-body-default {
|
|
224
|
+
.sequence-inverse > .active .np-text-body-default {
|
|
230
225
|
color: #5d7079;
|
|
231
226
|
color: var(--color-content-secondary);
|
|
232
227
|
}
|
|
@@ -85,10 +85,6 @@
|
|
|
85
85
|
.h2,
|
|
86
86
|
.h3,
|
|
87
87
|
.h4,
|
|
88
|
-
.wds-text-title-screen,
|
|
89
|
-
.wds-text-title-section,
|
|
90
|
-
.wds-text-title-subsection,
|
|
91
|
-
.wds-text-title-body,
|
|
92
88
|
.btn-toolbar {
|
|
93
89
|
margin-bottom: 16px;
|
|
94
90
|
}
|
|
@@ -190,8 +186,7 @@
|
|
|
190
186
|
|
|
191
187
|
.small,
|
|
192
188
|
.body-2,
|
|
193
|
-
.np-text-body-default
|
|
194
|
-
.wds-text-body-default {
|
|
189
|
+
.np-text-body-default {
|
|
195
190
|
color: var(--color-content-secondary);
|
|
196
191
|
}
|
|
197
192
|
|
|
@@ -221,7 +216,7 @@
|
|
|
221
216
|
|
|
222
217
|
> .active {
|
|
223
218
|
&::before {
|
|
224
|
-
border-width: (@sequence-pip-size / 2);
|
|
219
|
+
border-width: (@sequence-pip-size / 2); // TODO sequence-line-width?
|
|
225
220
|
}
|
|
226
221
|
|
|
227
222
|
~ li::before {
|
|
@@ -1,30 +1,4 @@
|
|
|
1
|
-
.tooltip
|
|
2
|
-
word-wrap: break-word;
|
|
3
|
-
}
|
|
4
|
-
@supports (hyphenate-limit-chars: 1) {
|
|
5
|
-
.tooltip-inner {
|
|
6
|
-
hyphens: auto;hyphenate-limit-chars: 7 3;
|
|
7
|
-
}
|
|
8
|
-
@media (min-width: 840px) {
|
|
9
|
-
.tooltip-inner {
|
|
10
|
-
hyphenate-limit-chars: 8 3;
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
@media (min-width: 1160px) {
|
|
14
|
-
.tooltip-inner {
|
|
15
|
-
hyphenate-limit-chars: 10 4 3;
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
}@supports (not (hyphenate-limit-chars: 1)) and (-webkit-hyphenate-limit-before: 1) {
|
|
19
|
-
.tooltip-inner {
|
|
20
|
-
hyphens: auto;-webkit-hyphenate-limit-before: 3;-webkit-hyphenate-limit-after: 3;
|
|
21
|
-
}
|
|
22
|
-
@media (min-width: 1160px) {
|
|
23
|
-
.tooltip-inner {
|
|
24
|
-
-webkit-hyphenate-limit-before: 4;
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
}.tooltip {
|
|
1
|
+
.tooltip {
|
|
28
2
|
position: absolute;
|
|
29
3
|
z-index: 1070;
|
|
30
4
|
display: block;
|
|
@@ -71,6 +45,12 @@
|
|
|
71
45
|
padding-inline: 5px;
|
|
72
46
|
}
|
|
73
47
|
.tooltip-inner {
|
|
48
|
+
font-size: 0.875rem;
|
|
49
|
+
font-size: var(--font-size-14);
|
|
50
|
+
line-height: 155%;
|
|
51
|
+
letter-spacing: -0.006em;
|
|
52
|
+
font-weight: 400;
|
|
53
|
+
font-weight: var(--font-weight-regular);
|
|
74
54
|
word-wrap: break-word;
|
|
75
55
|
max-inline-size: 200px;
|
|
76
56
|
min-inline-size: 120px;
|