@transferwise/neptune-css 14.29.1 → 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.
@@ -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
  }
@@ -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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@transferwise/neptune-css",
3
3
  "description": "Neptune CSS library",
4
- "version": "14.29.1",
4
+ "version": "14.29.2",
5
5
  "license": "MIT",
6
6
  "repository": {
7
7
  "type": "git",
@@ -48,6 +48,8 @@
48
48
  }
49
49
 
50
50
  .np-text-hyphenated {
51
+ overflow-wrap: break-word;
52
+
51
53
  @supports (hyphenate-limit-chars: 1) {
52
54
  hyphens: auto;
53
55
  hyphenate-limit-chars: 7 3;
@@ -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),
File without changes
File without changes