@transferwise/neptune-css 14.29.0 → 14.29.2
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/dist/css/accordion.css +33 -0
- package/dist/css/button-groups.css +29 -0
- package/dist/css/buttons.css +30 -7
- package/dist/css/chevron.css +3 -0
- package/dist/css/decision.css +30 -0
- package/dist/css/dropdowns.css +59 -0
- package/dist/css/droppable.css +29 -0
- package/dist/css/footer.css +63 -0
- package/dist/css/input-groups.css +189 -0
- package/dist/css/list-group.css +1 -0
- package/dist/css/navbar.css +59 -0
- package/dist/css/neptune-addons.css +3 -0
- package/dist/css/neptune-core.css +185 -0
- package/dist/css/neptune.css +759 -37
- package/dist/css/popovers.css +59 -0
- package/dist/css/process.css +15 -9
- package/dist/css/tick.css +6 -3
- package/dist/css/tooltip.css +29 -0
- package/package.json +1 -1
- package/src/less/addons/_spacing-utilities.less +2 -0
- package/src/less/buttons.less +3 -11
- package/src/less/chevron.less +4 -0
- package/src/less/core/_typography.less +12 -0
- package/src/less/process.less +13 -6
- package/src/less/tick.less +7 -3
package/dist/css/popovers.css
CHANGED
|
@@ -72,6 +72,7 @@ button.close {
|
|
|
72
72
|
letter-spacing: -0.006em;
|
|
73
73
|
font-weight: 400;
|
|
74
74
|
font-weight: var(--font-weight-regular);
|
|
75
|
+
word-wrap: break-word;
|
|
75
76
|
background-color: #ffffff;
|
|
76
77
|
background-color: var(--color-background-screen);
|
|
77
78
|
background-clip: padding-box;
|
|
@@ -79,6 +80,34 @@ button.close {
|
|
|
79
80
|
box-shadow: 0 20px 66px 0 rgba(34, 48, 73, 0.2);
|
|
80
81
|
position: absolute;
|
|
81
82
|
}
|
|
83
|
+
@supports (hyphenate-limit-chars: 1) {
|
|
84
|
+
.popover {
|
|
85
|
+
hyphens: auto;
|
|
86
|
+
hyphenate-limit-chars: 7 3;
|
|
87
|
+
}
|
|
88
|
+
@media (min-width: 840px) {
|
|
89
|
+
.popover {
|
|
90
|
+
hyphenate-limit-chars: 8 3;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
@media (min-width: 1160px) {
|
|
94
|
+
.popover {
|
|
95
|
+
hyphenate-limit-chars: 10 4 3;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
@supports (not (hyphenate-limit-chars: 1)) and (-webkit-hyphenate-limit-before: 1) {
|
|
100
|
+
.popover {
|
|
101
|
+
hyphens: auto;
|
|
102
|
+
-webkit-hyphenate-limit-before: 3;
|
|
103
|
+
-webkit-hyphenate-limit-after: 3;
|
|
104
|
+
}
|
|
105
|
+
@media (min-width: 1160px) {
|
|
106
|
+
.popover {
|
|
107
|
+
-webkit-hyphenate-limit-before: 4;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
}
|
|
82
111
|
.np-theme-personal--forest-green .popover,
|
|
83
112
|
.np-theme-personal--bright-green .popover,
|
|
84
113
|
.np-theme-personal--dark .popover {
|
|
@@ -236,6 +265,7 @@ button.close {
|
|
|
236
265
|
line-height: 1.2;
|
|
237
266
|
line-height: var(--line-height-title);
|
|
238
267
|
letter-spacing: 0;
|
|
268
|
+
word-wrap: break-word;
|
|
239
269
|
font-size: 1.125rem;
|
|
240
270
|
font-size: var(--font-size-18);
|
|
241
271
|
font-weight: 600;
|
|
@@ -293,9 +323,38 @@ button.close {
|
|
|
293
323
|
letter-spacing: -0.006em;
|
|
294
324
|
font-weight: 400;
|
|
295
325
|
font-weight: var(--font-weight-regular);
|
|
326
|
+
word-wrap: break-word;
|
|
296
327
|
color: #5d7079;
|
|
297
328
|
color: var(--color-content-secondary);
|
|
298
329
|
}
|
|
330
|
+
@supports (hyphenate-limit-chars: 1) {
|
|
331
|
+
.popover-content {
|
|
332
|
+
hyphens: auto;
|
|
333
|
+
hyphenate-limit-chars: 7 3;
|
|
334
|
+
}
|
|
335
|
+
@media (min-width: 840px) {
|
|
336
|
+
.popover-content {
|
|
337
|
+
hyphenate-limit-chars: 8 3;
|
|
338
|
+
}
|
|
339
|
+
}
|
|
340
|
+
@media (min-width: 1160px) {
|
|
341
|
+
.popover-content {
|
|
342
|
+
hyphenate-limit-chars: 10 4 3;
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
@supports (not (hyphenate-limit-chars: 1)) and (-webkit-hyphenate-limit-before: 1) {
|
|
347
|
+
.popover-content {
|
|
348
|
+
hyphens: auto;
|
|
349
|
+
-webkit-hyphenate-limit-before: 3;
|
|
350
|
+
-webkit-hyphenate-limit-after: 3;
|
|
351
|
+
}
|
|
352
|
+
@media (min-width: 1160px) {
|
|
353
|
+
.popover-content {
|
|
354
|
+
-webkit-hyphenate-limit-before: 4;
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
}
|
|
299
358
|
.popover-content > :last-child {
|
|
300
359
|
margin-block-end: 0;
|
|
301
360
|
}
|
package/dist/css/process.css
CHANGED
|
@@ -55,6 +55,9 @@
|
|
|
55
55
|
inset-inline-start: 25%;
|
|
56
56
|
inset-block-start: 25%;
|
|
57
57
|
}
|
|
58
|
+
[dir="rtl"] .process-icon-container {
|
|
59
|
+
transform: rotate(45deg) scaleX(-1);
|
|
60
|
+
}
|
|
58
61
|
.process-icon-horizontal,
|
|
59
62
|
.process-icon-vertical {
|
|
60
63
|
position: absolute;
|
|
@@ -134,37 +137,37 @@
|
|
|
134
137
|
.process-stopped .process-icon-container {
|
|
135
138
|
display: none;
|
|
136
139
|
}
|
|
137
|
-
.process-
|
|
140
|
+
.process-xxs {
|
|
138
141
|
inline-size: 12px;
|
|
139
142
|
block-size: 12px;
|
|
140
143
|
}
|
|
141
|
-
.process-
|
|
144
|
+
.process-xxs .process-circle {
|
|
142
145
|
/* Hide before animation to prevent glitching */
|
|
143
146
|
stroke-dashoffset: 31.41592654px;
|
|
144
147
|
stroke-dasharray: 31.41592654px;
|
|
145
148
|
stroke-width: 1.5px;
|
|
146
149
|
}
|
|
147
|
-
.process-
|
|
150
|
+
.process-xxs.process-danger .process-icon-horizontal {
|
|
148
151
|
inset-block-start: 2.5px;
|
|
149
152
|
block-size: 1px;
|
|
150
153
|
}
|
|
151
|
-
.process-
|
|
154
|
+
.process-xxs.process-danger .process-icon-vertical {
|
|
152
155
|
inset-inline-start: 2.5px;
|
|
153
156
|
inline-size: 1px;
|
|
154
157
|
}
|
|
155
|
-
.process-
|
|
156
|
-
.process-
|
|
158
|
+
.process-xxs .process-icon-horizontal,
|
|
159
|
+
.process-xxs .process-icon-vertical {
|
|
157
160
|
border-radius: 0.5px;
|
|
158
161
|
}
|
|
159
|
-
.process-
|
|
162
|
+
.process-xxs.process-success .process-icon-container {
|
|
160
163
|
inline-size: 2.5px;
|
|
161
164
|
block-size: 5px;
|
|
162
165
|
inset-inline-start: 4.5px;
|
|
163
166
|
}
|
|
164
|
-
.process-
|
|
167
|
+
.process-xxs.process-success .process-icon-horizontal {
|
|
165
168
|
block-size: 1px;
|
|
166
169
|
}
|
|
167
|
-
.process-
|
|
170
|
+
.process-xxs.process-success .process-icon-vertical {
|
|
168
171
|
inline-size: 1px;
|
|
169
172
|
}
|
|
170
173
|
.process-xs {
|
|
@@ -266,6 +269,9 @@
|
|
|
266
269
|
.process-xl.process-success .process-icon-vertical {
|
|
267
270
|
inline-size: 8px;
|
|
268
271
|
}
|
|
272
|
+
.process-xxs .process-icon-container {
|
|
273
|
+
display: none;
|
|
274
|
+
}
|
|
269
275
|
.process-xxs .process-circle {
|
|
270
276
|
animation-name: process-chase-circle-xxs;
|
|
271
277
|
}
|
package/dist/css/tick.css
CHANGED
|
@@ -10,10 +10,13 @@
|
|
|
10
10
|
position: absolute;
|
|
11
11
|
background: #ffffff;
|
|
12
12
|
background: var(--color-background-screen);
|
|
13
|
-
transform: translateX(
|
|
13
|
+
transform: translateX(-1.5px) rotate(-45deg);
|
|
14
14
|
transform-origin: left bottom;
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
}
|
|
16
|
+
[dir="rtl"] .tw-checkbox-check::before,
|
|
17
|
+
[dir="rtl"] .tw-checkbox-check::after {
|
|
18
|
+
transform: translateX(-1.5px) rotate(-45deg) scaleX(-1);
|
|
19
|
+
transform-origin: right bottom;
|
|
17
20
|
}
|
|
18
21
|
.tw-checkbox-check .has-error::before,
|
|
19
22
|
.tw-checkbox-check .has-error::after {
|
package/dist/css/tooltip.css
CHANGED
|
@@ -51,6 +51,7 @@
|
|
|
51
51
|
letter-spacing: -0.006em;
|
|
52
52
|
font-weight: 400;
|
|
53
53
|
font-weight: var(--font-weight-regular);
|
|
54
|
+
word-wrap: break-word;
|
|
54
55
|
max-inline-size: 200px;
|
|
55
56
|
min-inline-size: 120px;
|
|
56
57
|
padding-block: 16px;
|
|
@@ -65,6 +66,34 @@
|
|
|
65
66
|
border-radius: 3px;
|
|
66
67
|
box-shadow: 0 1px 28px 0 rgba(34, 48, 73, 0.2);
|
|
67
68
|
}
|
|
69
|
+
@supports (hyphenate-limit-chars: 1) {
|
|
70
|
+
.tooltip-inner {
|
|
71
|
+
hyphens: auto;
|
|
72
|
+
hyphenate-limit-chars: 7 3;
|
|
73
|
+
}
|
|
74
|
+
@media (min-width: 840px) {
|
|
75
|
+
.tooltip-inner {
|
|
76
|
+
hyphenate-limit-chars: 8 3;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
@media (min-width: 1160px) {
|
|
80
|
+
.tooltip-inner {
|
|
81
|
+
hyphenate-limit-chars: 10 4 3;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
@supports (not (hyphenate-limit-chars: 1)) and (-webkit-hyphenate-limit-before: 1) {
|
|
86
|
+
.tooltip-inner {
|
|
87
|
+
hyphens: auto;
|
|
88
|
+
-webkit-hyphenate-limit-before: 3;
|
|
89
|
+
-webkit-hyphenate-limit-after: 3;
|
|
90
|
+
}
|
|
91
|
+
@media (min-width: 1160px) {
|
|
92
|
+
.tooltip-inner {
|
|
93
|
+
-webkit-hyphenate-limit-before: 4;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
}
|
|
68
97
|
.np-theme-personal--forest-green .tooltip-inner,
|
|
69
98
|
.np-theme-personal--bright-green .tooltip-inner,
|
|
70
99
|
.np-theme-personal--dark .tooltip-inner {
|
package/package.json
CHANGED
package/src/less/buttons.less
CHANGED
|
@@ -647,18 +647,10 @@ input[type="button"] {
|
|
|
647
647
|
display: inline-flex;
|
|
648
648
|
align-items: center;
|
|
649
649
|
|
|
650
|
-
.btn-loader {
|
|
650
|
+
.btn-loader[class] {
|
|
651
651
|
margin-bottom: 0;
|
|
652
|
-
|
|
653
|
-
:
|
|
654
|
-
margin-left: 16px;
|
|
655
|
-
margin-right: 0;
|
|
656
|
-
}
|
|
657
|
-
|
|
658
|
-
[dir="rtl"] & {
|
|
659
|
-
margin-left: 0 !important;
|
|
660
|
-
margin-right: 16px !important;
|
|
661
|
-
}
|
|
652
|
+
margin-left: 16px;
|
|
653
|
+
margin-right: 0;
|
|
662
654
|
}
|
|
663
655
|
}
|
|
664
656
|
|
package/src/less/chevron.less
CHANGED
|
@@ -135,6 +135,7 @@ small,
|
|
|
135
135
|
line-height: 155%;
|
|
136
136
|
letter-spacing: -0.006em;
|
|
137
137
|
font-weight: var(--font-weight-regular);
|
|
138
|
+
.np-text-hyphenated;
|
|
138
139
|
}
|
|
139
140
|
|
|
140
141
|
/* DEPRECATED: use .np-text-body-default-bold instead */
|
|
@@ -149,6 +150,7 @@ small,
|
|
|
149
150
|
line-height: 155%;
|
|
150
151
|
letter-spacing: -0.006em;
|
|
151
152
|
font-weight: var(--font-weight-semi-bold);
|
|
153
|
+
.np-text-hyphenated;
|
|
152
154
|
}
|
|
153
155
|
|
|
154
156
|
/* DEPRECATED: use .np-text-body-large instead */
|
|
@@ -160,6 +162,7 @@ small,
|
|
|
160
162
|
font-size: var(--font-size-16);
|
|
161
163
|
line-height: 150%;
|
|
162
164
|
letter-spacing: -0.011em;
|
|
165
|
+
.np-text-hyphenated;
|
|
163
166
|
}
|
|
164
167
|
|
|
165
168
|
/* DEPRECATED: use np-text-body-large-bold instead */
|
|
@@ -170,6 +173,7 @@ small,
|
|
|
170
173
|
font-size: var(--font-size-16);
|
|
171
174
|
line-height: 150%;
|
|
172
175
|
letter-spacing: -0.011em;
|
|
176
|
+
.np-text-hyphenated;
|
|
173
177
|
}
|
|
174
178
|
|
|
175
179
|
// LINK
|
|
@@ -280,6 +284,14 @@ a,
|
|
|
280
284
|
}
|
|
281
285
|
}
|
|
282
286
|
|
|
287
|
+
/* Disable hyphenation for Japanese, Thai, and Chinese — these languages use character-level breaks and should never insert hyphens. */
|
|
288
|
+
:lang(ja),
|
|
289
|
+
:lang(th),
|
|
290
|
+
:lang(zh-CN),
|
|
291
|
+
:lang(zh-HK) {
|
|
292
|
+
hyphens: none;
|
|
293
|
+
}
|
|
294
|
+
|
|
283
295
|
:lang(af),
|
|
284
296
|
:lang(sq),
|
|
285
297
|
:lang(eu),
|
package/src/less/process.less
CHANGED
|
@@ -84,6 +84,11 @@
|
|
|
84
84
|
width: 50%;
|
|
85
85
|
left: 25%;
|
|
86
86
|
top: 25%;
|
|
87
|
+
|
|
88
|
+
// Icon is purely decorative — keep physical positioning in RTL
|
|
89
|
+
[dir="rtl"] & {
|
|
90
|
+
transform: rotate(45deg) scaleX(-1);
|
|
91
|
+
}
|
|
87
92
|
}
|
|
88
93
|
|
|
89
94
|
.process-icon-horizontal,
|
|
@@ -231,7 +236,7 @@
|
|
|
231
236
|
}
|
|
232
237
|
}
|
|
233
238
|
.process-size(
|
|
234
|
-
|
|
239
|
+
xxs, @process-xxs-radius, @process-xxs-circumference, @process-xxs-stroke, @process-xxs-icon-size, @process-xxs-icon-stroke
|
|
235
240
|
);
|
|
236
241
|
.process-size(
|
|
237
242
|
xs, @process-xs-radius, @process-xs-circumference, @process-xs-stroke, @process-xs-icon-size, @process-xs-icon-stroke
|
|
@@ -244,6 +249,10 @@
|
|
|
244
249
|
);
|
|
245
250
|
|
|
246
251
|
.process-xxs {
|
|
252
|
+
.process-icon-container {
|
|
253
|
+
display: none;
|
|
254
|
+
}
|
|
255
|
+
|
|
247
256
|
.process-circle {
|
|
248
257
|
animation-name: process-chase-circle-xxs;
|
|
249
258
|
}
|
|
@@ -379,11 +388,9 @@
|
|
|
379
388
|
}
|
|
380
389
|
|
|
381
390
|
.btn .process:first-child {
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
.float(left);
|
|
391
|
+
margin-left: -12px;
|
|
392
|
+
margin-right: 12px;
|
|
393
|
+
float: left;
|
|
387
394
|
}
|
|
388
395
|
|
|
389
396
|
.btn-block .process:first-child {
|
package/src/less/tick.less
CHANGED
|
@@ -11,9 +11,13 @@
|
|
|
11
11
|
content: "";
|
|
12
12
|
position: absolute;
|
|
13
13
|
background: var(--color-background-screen);
|
|
14
|
-
transform: translateX(
|
|
14
|
+
transform: translateX(-1.5px) rotate(-45deg);
|
|
15
15
|
transform-origin: left bottom;
|
|
16
|
-
|
|
16
|
+
|
|
17
|
+
[dir="rtl"] & {
|
|
18
|
+
transform: translateX(-1.5px) rotate(-45deg) scaleX(-1);
|
|
19
|
+
transform-origin: right bottom;
|
|
20
|
+
}
|
|
17
21
|
}
|
|
18
22
|
|
|
19
23
|
.has-error {
|
|
@@ -34,4 +38,4 @@
|
|
|
34
38
|
height: 2px;
|
|
35
39
|
width: 11px;
|
|
36
40
|
}
|
|
37
|
-
}
|
|
41
|
+
}
|