@transferwise/components 46.160.7 → 46.161.0

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.
Files changed (96) hide show
  1. package/build/Tag/Tag.js +45 -0
  2. package/build/Tag/Tag.js.map +1 -0
  3. package/build/Tag/Tag.mjs +41 -0
  4. package/build/Tag/Tag.mjs.map +1 -0
  5. package/build/index.js +2 -0
  6. package/build/index.js.map +1 -1
  7. package/build/index.mjs +1 -0
  8. package/build/index.mjs.map +1 -1
  9. package/build/main.css +853 -0
  10. package/build/styles/Inputs/Input/Input.css +88 -0
  11. package/build/styles/Inputs/TextArea/TextArea.css +88 -0
  12. package/build/styles/Popover/Popover.css +1 -0
  13. package/build/styles/Tag/Tag.css +30 -0
  14. package/build/styles/_deprecated/Select/Select.css +29 -0
  15. package/build/styles/css/accordion.css +30 -0
  16. package/build/styles/css/button-groups.css +29 -0
  17. package/build/styles/css/buttons.css +29 -0
  18. package/build/styles/css/decision.css +30 -0
  19. package/build/styles/css/dropdowns.css +59 -0
  20. package/build/styles/css/droppable.css +29 -0
  21. package/build/styles/css/footer.css +63 -0
  22. package/build/styles/css/input-groups.css +189 -0
  23. package/build/styles/css/list-group.css +1 -0
  24. package/build/styles/css/navbar.css +59 -0
  25. package/build/styles/css/neptune-addons.css +3 -0
  26. package/build/styles/css/neptune-core.css +185 -0
  27. package/build/styles/css/neptune.css +705 -0
  28. package/build/styles/css/popovers.css +59 -0
  29. package/build/styles/css/tooltip.css +29 -0
  30. package/build/styles/main.css +853 -0
  31. package/build/styles/styles/less/accordion.css +30 -0
  32. package/build/styles/styles/less/button-groups.css +29 -0
  33. package/build/styles/styles/less/buttons.css +29 -0
  34. package/build/styles/styles/less/decision.css +30 -0
  35. package/build/styles/styles/less/dropdowns.css +59 -0
  36. package/build/styles/styles/less/droppable.css +29 -0
  37. package/build/styles/styles/less/footer.css +63 -0
  38. package/build/styles/styles/less/forms/bootstrap-forms.css +116 -0
  39. package/build/styles/styles/less/input-groups.css +189 -0
  40. package/build/styles/styles/less/list-group.css +1 -0
  41. package/build/styles/styles/less/navbar.css +59 -0
  42. package/build/styles/styles/less/neptune-addons.css +3 -0
  43. package/build/styles/styles/less/neptune-core.css +185 -0
  44. package/build/styles/styles/less/neptune.css +705 -0
  45. package/build/styles/styles/less/popovers.css +59 -0
  46. package/build/styles/styles/less/tooltip.css +29 -0
  47. package/build/types/Tag/Tag.d.ts +24 -0
  48. package/build/types/Tag/Tag.d.ts.map +1 -0
  49. package/build/types/Tag/Tag.types.d.ts +39 -0
  50. package/build/types/Tag/Tag.types.d.ts.map +1 -0
  51. package/build/types/Tag/index.d.ts +3 -0
  52. package/build/types/Tag/index.d.ts.map +1 -0
  53. package/build/types/index.d.ts +2 -0
  54. package/build/types/index.d.ts.map +1 -1
  55. package/package.json +1 -1
  56. package/src/Body/_stories/Body.test.story.tsx +81 -0
  57. package/src/Inputs/Input/Input.css +88 -0
  58. package/src/Inputs/TextArea/TextArea.css +88 -0
  59. package/src/Popover/Popover.css +1 -0
  60. package/src/Tag/Tag.css +30 -0
  61. package/src/Tag/Tag.less +31 -0
  62. package/src/Tag/Tag.test.tsx +70 -0
  63. package/src/Tag/Tag.tsx +71 -0
  64. package/src/Tag/Tag.types.ts +46 -0
  65. package/src/Tag/_stories/Tag.story.tsx +245 -0
  66. package/src/Tag/_stories/Tag.test.story.tsx +121 -0
  67. package/src/Tag/index.ts +2 -0
  68. package/src/_deprecated/Card/_stories/Card.test.story.tsx +1 -1
  69. package/src/_deprecated/CriticalBanner/_stories/CriticalCommsBanner.test.story.tsx +1 -1
  70. package/src/_deprecated/InlineAlert/_stories/InlineAlert.test.story.tsx +1 -1
  71. package/src/_deprecated/OverlayHeader/_stories/OverlayHeader.test.story.tsx +1 -1
  72. package/src/_deprecated/Select/Select.css +29 -0
  73. package/src/_deprecated/Select/_stories/Select.rtl.test.story.tsx +1 -1
  74. package/src/_deprecated/Select/_stories/Select.test.story.tsx +1 -1
  75. package/src/index.ts +2 -0
  76. package/src/main.css +853 -0
  77. package/src/main.less +1 -0
  78. package/src/styles/less/accordion.css +30 -0
  79. package/src/styles/less/addons/_spacing-utilities.less +2 -0
  80. package/src/styles/less/button-groups.css +29 -0
  81. package/src/styles/less/buttons.css +29 -0
  82. package/src/styles/less/core/_typography.less +12 -0
  83. package/src/styles/less/decision.css +30 -0
  84. package/src/styles/less/dropdowns.css +59 -0
  85. package/src/styles/less/droppable.css +29 -0
  86. package/src/styles/less/footer.css +63 -0
  87. package/src/styles/less/forms/bootstrap-forms.css +116 -0
  88. package/src/styles/less/input-groups.css +189 -0
  89. package/src/styles/less/list-group.css +1 -0
  90. package/src/styles/less/navbar.css +59 -0
  91. package/src/styles/less/neptune-addons.css +3 -0
  92. package/src/styles/less/neptune-core.css +185 -0
  93. package/src/styles/less/neptune.css +705 -0
  94. package/src/styles/less/popovers.css +59 -0
  95. package/src/styles/less/tooltip.css +29 -0
  96. package/src/test-utils/assets/card-payment-bakery.webp +0 -0
@@ -7,11 +7,40 @@
7
7
  letter-spacing: -0.006em;
8
8
  font-weight: 400;
9
9
  font-weight: var(--font-weight-regular);
10
+ word-wrap: break-word;
10
11
  padding-block-start: calc(8px * 10);
11
12
  padding-block-start: calc(var(--size-8) * 10);
12
13
  padding-block-end: calc(8px * 10);
13
14
  padding-block-end: calc(var(--size-8) * 10);
14
15
  }
16
+ @supports (hyphenate-limit-chars: 1) {
17
+ .footer {
18
+ hyphens: auto;
19
+ hyphenate-limit-chars: 7 3;
20
+ }
21
+ @media (min-width: 840px) {
22
+ .footer {
23
+ hyphenate-limit-chars: 8 3;
24
+ }
25
+ }
26
+ @media (min-width: 1160px) {
27
+ .footer {
28
+ hyphenate-limit-chars: 10 4 3;
29
+ }
30
+ }
31
+ }
32
+ @supports (not (hyphenate-limit-chars: 1)) and (-webkit-hyphenate-limit-before: 1) {
33
+ .footer {
34
+ hyphens: auto;
35
+ -webkit-hyphenate-limit-before: 3;
36
+ -webkit-hyphenate-limit-after: 3;
37
+ }
38
+ @media (min-width: 1160px) {
39
+ .footer {
40
+ -webkit-hyphenate-limit-before: 4;
41
+ }
42
+ }
43
+ }
15
44
  @media (min-width: 600px) {
16
45
  .footer {
17
46
  padding-block-start: calc(8px * 15);
@@ -38,6 +67,40 @@
38
67
  letter-spacing: -0.006em;
39
68
  font-weight: 400;
40
69
  font-weight: var(--font-weight-regular);
70
+ word-wrap: break-word;
71
+ }
72
+ @supports (hyphenate-limit-chars: 1) {
73
+ .footer .footer-link,
74
+ .footer .link-icon {
75
+ hyphens: auto;
76
+ hyphenate-limit-chars: 7 3;
77
+ }
78
+ @media (min-width: 840px) {
79
+ .footer .footer-link,
80
+ .footer .link-icon {
81
+ hyphenate-limit-chars: 8 3;
82
+ }
83
+ }
84
+ @media (min-width: 1160px) {
85
+ .footer .footer-link,
86
+ .footer .link-icon {
87
+ hyphenate-limit-chars: 10 4 3;
88
+ }
89
+ }
90
+ }
91
+ @supports (not (hyphenate-limit-chars: 1)) and (-webkit-hyphenate-limit-before: 1) {
92
+ .footer .footer-link,
93
+ .footer .link-icon {
94
+ hyphens: auto;
95
+ -webkit-hyphenate-limit-before: 3;
96
+ -webkit-hyphenate-limit-after: 3;
97
+ }
98
+ @media (min-width: 1160px) {
99
+ .footer .footer-link,
100
+ .footer .link-icon {
101
+ -webkit-hyphenate-limit-before: 4;
102
+ }
103
+ }
41
104
  }
42
105
  .footer .footer-link:hover,
43
106
  .footer .link-icon:hover,
@@ -97,6 +97,7 @@ output {
97
97
  font-size: var(--font-size-16);
98
98
  line-height: 150%;
99
99
  letter-spacing: -0.011em;
100
+ word-wrap: break-word;
100
101
  background-clip: padding-box;
101
102
  }
102
103
  select.form-control {
@@ -106,6 +107,34 @@ textarea.form-control,
106
107
  select[multiple].form-control {
107
108
  block-size: auto;
108
109
  }
110
+ @supports (hyphenate-limit-chars: 1) {
111
+ .form-control {
112
+ hyphens: auto;
113
+ hyphenate-limit-chars: 7 3;
114
+ }
115
+ @media (min-width: 840px) {
116
+ .form-control {
117
+ hyphenate-limit-chars: 8 3;
118
+ }
119
+ }
120
+ @media (min-width: 1160px) {
121
+ .form-control {
122
+ hyphenate-limit-chars: 10 4 3;
123
+ }
124
+ }
125
+ }
126
+ @supports (not (hyphenate-limit-chars: 1)) and (-webkit-hyphenate-limit-before: 1) {
127
+ .form-control {
128
+ hyphens: auto;
129
+ -webkit-hyphenate-limit-before: 3;
130
+ -webkit-hyphenate-limit-after: 3;
131
+ }
132
+ @media (min-width: 1160px) {
133
+ .form-control {
134
+ -webkit-hyphenate-limit-before: 4;
135
+ }
136
+ }
137
+ }
109
138
  .form-control:not(.disabled):not(:disabled):focus {
110
139
  border-color: #0081ba;
111
140
  border-color: var(--color-interactive-accent-active);
@@ -287,6 +316,7 @@ fieldset[disabled] .checkbox label {
287
316
  letter-spacing: -0.006em;
288
317
  font-weight: 400;
289
318
  font-weight: var(--font-weight-regular);
319
+ word-wrap: break-word;
290
320
  }
291
321
  select.input-sm {
292
322
  min-block-size: 32px;
@@ -295,6 +325,34 @@ textarea.input-sm,
295
325
  select[multiple].input-sm {
296
326
  block-size: auto;
297
327
  }
328
+ @supports (hyphenate-limit-chars: 1) {
329
+ .input-sm {
330
+ hyphens: auto;
331
+ hyphenate-limit-chars: 7 3;
332
+ }
333
+ @media (min-width: 840px) {
334
+ .input-sm {
335
+ hyphenate-limit-chars: 8 3;
336
+ }
337
+ }
338
+ @media (min-width: 1160px) {
339
+ .input-sm {
340
+ hyphenate-limit-chars: 10 4 3;
341
+ }
342
+ }
343
+ }
344
+ @supports (not (hyphenate-limit-chars: 1)) and (-webkit-hyphenate-limit-before: 1) {
345
+ .input-sm {
346
+ hyphens: auto;
347
+ -webkit-hyphenate-limit-before: 3;
348
+ -webkit-hyphenate-limit-after: 3;
349
+ }
350
+ @media (min-width: 1160px) {
351
+ .input-sm {
352
+ -webkit-hyphenate-limit-before: 4;
353
+ }
354
+ }
355
+ }
298
356
  .form-group-sm .form-control,
299
357
  .navbar .form-control {
300
358
  block-size: 32px;
@@ -335,6 +393,7 @@ select[multiple].input-sm {
335
393
  font-size: var(--font-size-16);
336
394
  line-height: 150%;
337
395
  letter-spacing: -0.011em;
396
+ word-wrap: break-word;
338
397
  }
339
398
  select.input-lg {
340
399
  min-block-size: var(--input-height-large);
@@ -343,6 +402,34 @@ textarea.input-lg,
343
402
  select[multiple].input-lg {
344
403
  block-size: auto;
345
404
  }
405
+ @supports (hyphenate-limit-chars: 1) {
406
+ .input-lg {
407
+ hyphens: auto;
408
+ hyphenate-limit-chars: 7 3;
409
+ }
410
+ @media (min-width: 840px) {
411
+ .input-lg {
412
+ hyphenate-limit-chars: 8 3;
413
+ }
414
+ }
415
+ @media (min-width: 1160px) {
416
+ .input-lg {
417
+ hyphenate-limit-chars: 10 4 3;
418
+ }
419
+ }
420
+ }
421
+ @supports (not (hyphenate-limit-chars: 1)) and (-webkit-hyphenate-limit-before: 1) {
422
+ .input-lg {
423
+ hyphens: auto;
424
+ -webkit-hyphenate-limit-before: 3;
425
+ -webkit-hyphenate-limit-after: 3;
426
+ }
427
+ @media (min-width: 1160px) {
428
+ .input-lg {
429
+ -webkit-hyphenate-limit-before: 4;
430
+ }
431
+ }
432
+ }
346
433
  .form-group-lg {
347
434
  position: relative;
348
435
  }
@@ -1938,11 +2025,40 @@ input[type="checkbox"]:not(.disabled):not(:disabled):indeterminate:active + .tw-
1938
2025
  font-size: var(--font-size-16);
1939
2026
  line-height: 150%;
1940
2027
  letter-spacing: -0.011em;
2028
+ word-wrap: break-word;
1941
2029
  display: block;
1942
2030
  inline-size: 100%;
1943
2031
  color: #768e9c;
1944
2032
  color: var(--color-content-tertiary);
1945
2033
  }
2034
+ @supports (hyphenate-limit-chars: 1) {
2035
+ .form-control-placeholder {
2036
+ hyphens: auto;
2037
+ hyphenate-limit-chars: 7 3;
2038
+ }
2039
+ @media (min-width: 840px) {
2040
+ .form-control-placeholder {
2041
+ hyphenate-limit-chars: 8 3;
2042
+ }
2043
+ }
2044
+ @media (min-width: 1160px) {
2045
+ .form-control-placeholder {
2046
+ hyphenate-limit-chars: 10 4 3;
2047
+ }
2048
+ }
2049
+ }
2050
+ @supports (not (hyphenate-limit-chars: 1)) and (-webkit-hyphenate-limit-before: 1) {
2051
+ .form-control-placeholder {
2052
+ hyphens: auto;
2053
+ -webkit-hyphenate-limit-before: 3;
2054
+ -webkit-hyphenate-limit-after: 3;
2055
+ }
2056
+ @media (min-width: 1160px) {
2057
+ .form-control-placeholder {
2058
+ -webkit-hyphenate-limit-before: 4;
2059
+ }
2060
+ }
2061
+ }
1946
2062
  .np-theme-personal .btn-input,
1947
2063
  .np-theme-personal .input-group,
1948
2064
  .np-theme-personal .form-control,
@@ -2166,6 +2282,7 @@ input[type="checkbox"]:not(.disabled):not(:disabled):indeterminate:active + .tw-
2166
2282
  line-height: 1.2;
2167
2283
  line-height: var(--line-height-title);
2168
2284
  letter-spacing: 0;
2285
+ word-wrap: break-word;
2169
2286
  margin-block-end: initial;
2170
2287
  font-size: 1.375rem;
2171
2288
  font-size: var(--font-size-22);
@@ -2226,6 +2343,44 @@ select[multiple].input-group-lg > .input-group-btn .btn {
2226
2343
  }
2227
2344
  }
2228
2345
  }
2346
+ @supports (hyphenate-limit-chars: 1) {
2347
+ .input-group-lg > .form-control,
2348
+ .input-group-lg > .input-group-addon,
2349
+ .input-group-lg > .input-group-btn .btn {
2350
+ hyphens: auto;
2351
+ hyphenate-limit-chars: 7 3;
2352
+ }
2353
+ @media (min-width: 840px) {
2354
+ .input-group-lg > .form-control,
2355
+ .input-group-lg > .input-group-addon,
2356
+ .input-group-lg > .input-group-btn .btn {
2357
+ hyphenate-limit-chars: 8 3;
2358
+ }
2359
+ }
2360
+ @media (min-width: 1160px) {
2361
+ .input-group-lg > .form-control,
2362
+ .input-group-lg > .input-group-addon,
2363
+ .input-group-lg > .input-group-btn .btn {
2364
+ hyphenate-limit-chars: 10 4 3;
2365
+ }
2366
+ }
2367
+ }
2368
+ @supports (not (hyphenate-limit-chars: 1)) and (-webkit-hyphenate-limit-before: 1) {
2369
+ .input-group-lg > .form-control,
2370
+ .input-group-lg > .input-group-addon,
2371
+ .input-group-lg > .input-group-btn .btn {
2372
+ hyphens: auto;
2373
+ -webkit-hyphenate-limit-before: 3;
2374
+ -webkit-hyphenate-limit-after: 3;
2375
+ }
2376
+ @media (min-width: 1160px) {
2377
+ .input-group-lg > .form-control,
2378
+ .input-group-lg > .input-group-addon,
2379
+ .input-group-lg > .input-group-btn .btn {
2380
+ -webkit-hyphenate-limit-before: 4;
2381
+ }
2382
+ }
2383
+ }
2229
2384
  .input-group-lg > .form-control + p,
2230
2385
  .input-group-lg > .input-group-addon + p,
2231
2386
  .input-group-lg > .input-group-btn .btn + p,
@@ -2251,6 +2406,7 @@ select[multiple].input-group-lg > .input-group-btn .btn {
2251
2406
  letter-spacing: -0.006em;
2252
2407
  font-weight: 400;
2253
2408
  font-weight: var(--font-weight-regular);
2409
+ word-wrap: break-word;
2254
2410
  }
2255
2411
  select.input-group-sm > .form-control,
2256
2412
  select.input-group-sm > .input-group-addon {
@@ -2262,6 +2418,39 @@ select[multiple].input-group-sm > .form-control,
2262
2418
  select[multiple].input-group-sm > .input-group-addon {
2263
2419
  block-size: auto;
2264
2420
  }
2421
+ @supports (hyphenate-limit-chars: 1) {
2422
+ .input-group-sm > .form-control,
2423
+ .input-group-sm > .input-group-addon {
2424
+ hyphens: auto;
2425
+ hyphenate-limit-chars: 7 3;
2426
+ }
2427
+ @media (min-width: 840px) {
2428
+ .input-group-sm > .form-control,
2429
+ .input-group-sm > .input-group-addon {
2430
+ hyphenate-limit-chars: 8 3;
2431
+ }
2432
+ }
2433
+ @media (min-width: 1160px) {
2434
+ .input-group-sm > .form-control,
2435
+ .input-group-sm > .input-group-addon {
2436
+ hyphenate-limit-chars: 10 4 3;
2437
+ }
2438
+ }
2439
+ }
2440
+ @supports (not (hyphenate-limit-chars: 1)) and (-webkit-hyphenate-limit-before: 1) {
2441
+ .input-group-sm > .form-control,
2442
+ .input-group-sm > .input-group-addon {
2443
+ hyphens: auto;
2444
+ -webkit-hyphenate-limit-before: 3;
2445
+ -webkit-hyphenate-limit-after: 3;
2446
+ }
2447
+ @media (min-width: 1160px) {
2448
+ .input-group-sm > .form-control,
2449
+ .input-group-sm > .input-group-addon {
2450
+ -webkit-hyphenate-limit-before: 4;
2451
+ }
2452
+ }
2453
+ }
2265
2454
  .input-group-sm > .form-control .icon,
2266
2455
  .input-group-sm > .input-group-addon .icon {
2267
2456
  font-size: 1.25rem;
@@ -42,6 +42,7 @@
42
42
  line-height: 1.2;
43
43
  line-height: var(--line-height-title);
44
44
  letter-spacing: 0;
45
+ word-wrap: break-word;
45
46
  font-weight: 500;
46
47
  font-weight: var(--font-weight-medium);
47
48
  font-size: 0.875rem;
@@ -133,6 +133,7 @@
133
133
  letter-spacing: -0.006em;
134
134
  font-weight: 400;
135
135
  font-weight: var(--font-weight-regular);
136
+ word-wrap: break-word;
136
137
  text-align: start;
137
138
  background-color: #ffffff;
138
139
  background-color: var(--color-background-screen);
@@ -147,6 +148,34 @@
147
148
  transform: translateY(-10px) scale(0.95, 0.95);
148
149
  visibility: hidden;
149
150
  }
151
+ @supports (hyphenate-limit-chars: 1) {
152
+ .dropdown-menu {
153
+ hyphens: auto;
154
+ hyphenate-limit-chars: 7 3;
155
+ }
156
+ @media (min-width: 840px) {
157
+ .dropdown-menu {
158
+ hyphenate-limit-chars: 8 3;
159
+ }
160
+ }
161
+ @media (min-width: 1160px) {
162
+ .dropdown-menu {
163
+ hyphenate-limit-chars: 10 4 3;
164
+ }
165
+ }
166
+ }
167
+ @supports (not (hyphenate-limit-chars: 1)) and (-webkit-hyphenate-limit-before: 1) {
168
+ .dropdown-menu {
169
+ hyphens: auto;
170
+ -webkit-hyphenate-limit-before: 3;
171
+ -webkit-hyphenate-limit-after: 3;
172
+ }
173
+ @media (min-width: 1160px) {
174
+ .dropdown-menu {
175
+ -webkit-hyphenate-limit-before: 4;
176
+ }
177
+ }
178
+ }
150
179
  .np-theme-personal .dropdown-menu,
151
180
  .np-theme-personal--forest-green .dropdown-menu,
152
181
  .np-theme-personal--dark .dropdown-menu {
@@ -188,10 +217,39 @@
188
217
  letter-spacing: -0.006em;
189
218
  font-weight: 400;
190
219
  font-weight: var(--font-weight-regular);
220
+ word-wrap: break-word;
191
221
  color: #37517e;
192
222
  color: var(--color-content-primary);
193
223
  white-space: nowrap;
194
224
  }
225
+ @supports (hyphenate-limit-chars: 1) {
226
+ .dropdown-menu > li > a {
227
+ hyphens: auto;
228
+ hyphenate-limit-chars: 7 3;
229
+ }
230
+ @media (min-width: 840px) {
231
+ .dropdown-menu > li > a {
232
+ hyphenate-limit-chars: 8 3;
233
+ }
234
+ }
235
+ @media (min-width: 1160px) {
236
+ .dropdown-menu > li > a {
237
+ hyphenate-limit-chars: 10 4 3;
238
+ }
239
+ }
240
+ }
241
+ @supports (not (hyphenate-limit-chars: 1)) and (-webkit-hyphenate-limit-before: 1) {
242
+ .dropdown-menu > li > a {
243
+ hyphens: auto;
244
+ -webkit-hyphenate-limit-before: 3;
245
+ -webkit-hyphenate-limit-after: 3;
246
+ }
247
+ @media (min-width: 1160px) {
248
+ .dropdown-menu > li > a {
249
+ -webkit-hyphenate-limit-before: 4;
250
+ }
251
+ }
252
+ }
195
253
  .dropdown-menu > li > a .secondary {
196
254
  display: block;
197
255
  white-space: normal;
@@ -366,6 +424,7 @@
366
424
  line-height: 1.2;
367
425
  line-height: var(--line-height-title);
368
426
  letter-spacing: 0;
427
+ word-wrap: break-word;
369
428
  font-weight: 500;
370
429
  font-weight: var(--font-weight-medium);
371
430
  font-size: 0.875rem;
@@ -1259,6 +1259,9 @@
1259
1259
  padding-block-end: var(--size-96);
1260
1260
  }
1261
1261
  }
1262
+ .np-text-hyphenated {
1263
+ word-wrap: break-word;
1264
+ }
1262
1265
  @supports (hyphenate-limit-chars: 1) {
1263
1266
  .np-text-hyphenated {
1264
1267
  hyphens: auto;
@@ -660,6 +660,7 @@ h6,
660
660
  line-height: 1.2;
661
661
  line-height: var(--line-height-title);
662
662
  letter-spacing: 0;
663
+ word-wrap: break-word;
663
664
  }
664
665
  @supports (hyphenate-limit-chars: 1) {
665
666
  .h1,
@@ -961,6 +962,65 @@ small,
961
962
  letter-spacing: -0.006em;
962
963
  font-weight: 400;
963
964
  font-weight: var(--font-weight-regular);
965
+ word-wrap: break-word;
966
+ }
967
+ @supports (hyphenate-limit-chars: 1) {
968
+ .body-2,
969
+ .body-3,
970
+ .small,
971
+ .tiny,
972
+ body,
973
+ small,
974
+ .np-text-body-default {
975
+ hyphens: auto;
976
+ hyphenate-limit-chars: 7 3;
977
+ }
978
+ @media (min-width: 840px) {
979
+ .body-2,
980
+ .body-3,
981
+ .small,
982
+ .tiny,
983
+ body,
984
+ small,
985
+ .np-text-body-default {
986
+ hyphenate-limit-chars: 8 3;
987
+ }
988
+ }
989
+ @media (min-width: 1160px) {
990
+ .body-2,
991
+ .body-3,
992
+ .small,
993
+ .tiny,
994
+ body,
995
+ small,
996
+ .np-text-body-default {
997
+ hyphenate-limit-chars: 10 4 3;
998
+ }
999
+ }
1000
+ }
1001
+ @supports (not (hyphenate-limit-chars: 1)) and (-webkit-hyphenate-limit-before: 1) {
1002
+ .body-2,
1003
+ .body-3,
1004
+ .small,
1005
+ .tiny,
1006
+ body,
1007
+ small,
1008
+ .np-text-body-default {
1009
+ hyphens: auto;
1010
+ -webkit-hyphenate-limit-before: 3;
1011
+ -webkit-hyphenate-limit-after: 3;
1012
+ }
1013
+ @media (min-width: 1160px) {
1014
+ .body-2,
1015
+ .body-3,
1016
+ .small,
1017
+ .tiny,
1018
+ body,
1019
+ small,
1020
+ .np-text-body-default {
1021
+ -webkit-hyphenate-limit-before: 4;
1022
+ }
1023
+ }
964
1024
  }
965
1025
  /* DEPRECATED: use .np-text-body-default-bold instead */
966
1026
  /* stylelint-disable-next-line selector-list-comma-newline-after */
@@ -974,6 +1034,50 @@ small,
974
1034
  letter-spacing: -0.006em;
975
1035
  font-weight: 600;
976
1036
  font-weight: var(--font-weight-semi-bold);
1037
+ word-wrap: break-word;
1038
+ }
1039
+ @supports (hyphenate-limit-chars: 1) {
1040
+ .control-2,
1041
+ .label,
1042
+ .control-label,
1043
+ .np-text-body-default-bold {
1044
+ hyphens: auto;
1045
+ hyphenate-limit-chars: 7 3;
1046
+ }
1047
+ @media (min-width: 840px) {
1048
+ .control-2,
1049
+ .label,
1050
+ .control-label,
1051
+ .np-text-body-default-bold {
1052
+ hyphenate-limit-chars: 8 3;
1053
+ }
1054
+ }
1055
+ @media (min-width: 1160px) {
1056
+ .control-2,
1057
+ .label,
1058
+ .control-label,
1059
+ .np-text-body-default-bold {
1060
+ hyphenate-limit-chars: 10 4 3;
1061
+ }
1062
+ }
1063
+ }
1064
+ @supports (not (hyphenate-limit-chars: 1)) and (-webkit-hyphenate-limit-before: 1) {
1065
+ .control-2,
1066
+ .label,
1067
+ .control-label,
1068
+ .np-text-body-default-bold {
1069
+ hyphens: auto;
1070
+ -webkit-hyphenate-limit-before: 3;
1071
+ -webkit-hyphenate-limit-after: 3;
1072
+ }
1073
+ @media (min-width: 1160px) {
1074
+ .control-2,
1075
+ .label,
1076
+ .control-label,
1077
+ .np-text-body-default-bold {
1078
+ -webkit-hyphenate-limit-before: 4;
1079
+ }
1080
+ }
977
1081
  }
978
1082
  /* DEPRECATED: use .np-text-body-large instead */
979
1083
  /* stylelint-disable-next-line selector-list-comma-newline-after */
@@ -986,6 +1090,45 @@ small,
986
1090
  font-size: var(--font-size-16);
987
1091
  line-height: 150%;
988
1092
  letter-spacing: -0.011em;
1093
+ word-wrap: break-word;
1094
+ }
1095
+ @supports (hyphenate-limit-chars: 1) {
1096
+ .body-1,
1097
+ .value,
1098
+ .np-text-body-large {
1099
+ hyphens: auto;
1100
+ hyphenate-limit-chars: 7 3;
1101
+ }
1102
+ @media (min-width: 840px) {
1103
+ .body-1,
1104
+ .value,
1105
+ .np-text-body-large {
1106
+ hyphenate-limit-chars: 8 3;
1107
+ }
1108
+ }
1109
+ @media (min-width: 1160px) {
1110
+ .body-1,
1111
+ .value,
1112
+ .np-text-body-large {
1113
+ hyphenate-limit-chars: 10 4 3;
1114
+ }
1115
+ }
1116
+ }
1117
+ @supports (not (hyphenate-limit-chars: 1)) and (-webkit-hyphenate-limit-before: 1) {
1118
+ .body-1,
1119
+ .value,
1120
+ .np-text-body-large {
1121
+ hyphens: auto;
1122
+ -webkit-hyphenate-limit-before: 3;
1123
+ -webkit-hyphenate-limit-after: 3;
1124
+ }
1125
+ @media (min-width: 1160px) {
1126
+ .body-1,
1127
+ .value,
1128
+ .np-text-body-large {
1129
+ -webkit-hyphenate-limit-before: 4;
1130
+ }
1131
+ }
989
1132
  }
990
1133
  /* DEPRECATED: use np-text-body-large-bold instead */
991
1134
  /* stylelint-disable-next-line selector-list-comma-newline-after */
@@ -997,6 +1140,40 @@ small,
997
1140
  font-size: var(--font-size-16);
998
1141
  line-height: 150%;
999
1142
  letter-spacing: -0.011em;
1143
+ word-wrap: break-word;
1144
+ }
1145
+ @supports (hyphenate-limit-chars: 1) {
1146
+ .control-1,
1147
+ .np-text-body-large-bold {
1148
+ hyphens: auto;
1149
+ hyphenate-limit-chars: 7 3;
1150
+ }
1151
+ @media (min-width: 840px) {
1152
+ .control-1,
1153
+ .np-text-body-large-bold {
1154
+ hyphenate-limit-chars: 8 3;
1155
+ }
1156
+ }
1157
+ @media (min-width: 1160px) {
1158
+ .control-1,
1159
+ .np-text-body-large-bold {
1160
+ hyphenate-limit-chars: 10 4 3;
1161
+ }
1162
+ }
1163
+ }
1164
+ @supports (not (hyphenate-limit-chars: 1)) and (-webkit-hyphenate-limit-before: 1) {
1165
+ .control-1,
1166
+ .np-text-body-large-bold {
1167
+ hyphens: auto;
1168
+ -webkit-hyphenate-limit-before: 3;
1169
+ -webkit-hyphenate-limit-after: 3;
1170
+ }
1171
+ @media (min-width: 1160px) {
1172
+ .control-1,
1173
+ .np-text-body-large-bold {
1174
+ -webkit-hyphenate-limit-before: 4;
1175
+ }
1176
+ }
1000
1177
  }
1001
1178
  a,
1002
1179
  .np-text-link-default,
@@ -1103,6 +1280,7 @@ a,
1103
1280
  .np-text-display-medium,
1104
1281
  .np-text-display-small {
1105
1282
  letter-spacing: normal;
1283
+ word-wrap: break-word;
1106
1284
  }
1107
1285
  @supports (hyphenate-limit-chars: 1) {
1108
1286
  .np-text-display-extra-large,
@@ -1191,6 +1369,13 @@ a,
1191
1369
  font-weight: 400;
1192
1370
  font-weight: var(--font-weight-regular);
1193
1371
  }
1372
+ /* Disable hyphenation for Japanese, Thai, and Chinese — these languages use character-level breaks and should never insert hyphens. */
1373
+ :lang(ja),
1374
+ :lang(th),
1375
+ :lang(zh-CN),
1376
+ :lang(zh-HK) {
1377
+ hyphens: none;
1378
+ }
1194
1379
  :lang(af) .np-text-display-extra-large,
1195
1380
  :lang(sq) .np-text-display-extra-large,
1196
1381
  :lang(eu) .np-text-display-extra-large,