@transferwise/components 0.0.0-experimental-feef95e → 0.0.0-experimental-1bb5459

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 (95) hide show
  1. package/build/SentimentSurface/SentimentSurface.js +2 -1
  2. package/build/SentimentSurface/SentimentSurface.js.map +1 -1
  3. package/build/SentimentSurface/SentimentSurface.mjs +2 -1
  4. package/build/SentimentSurface/SentimentSurface.mjs.map +1 -1
  5. package/build/Tag/Tag.js +42 -0
  6. package/build/Tag/Tag.js.map +1 -0
  7. package/build/Tag/Tag.mjs +38 -0
  8. package/build/Tag/Tag.mjs.map +1 -0
  9. package/build/index.js +2 -0
  10. package/build/index.js.map +1 -1
  11. package/build/index.mjs +1 -0
  12. package/build/index.mjs.map +1 -1
  13. package/build/main.css +57 -809
  14. package/build/styles/Inputs/Input/Input.css +0 -84
  15. package/build/styles/Inputs/TextArea/TextArea.css +0 -84
  16. package/build/styles/Tag/Tag.css +35 -0
  17. package/build/styles/_deprecated/Select/Select.css +0 -28
  18. package/build/styles/css/accordion.css +0 -28
  19. package/build/styles/css/button-groups.css +0 -28
  20. package/build/styles/css/buttons.css +0 -28
  21. package/build/styles/css/decision.css +0 -28
  22. package/build/styles/css/dropdowns.css +0 -56
  23. package/build/styles/css/droppable.css +0 -28
  24. package/build/styles/css/footer.css +0 -61
  25. package/build/styles/css/input-groups.css +0 -183
  26. package/build/styles/css/navbar.css +0 -56
  27. package/build/styles/css/neptune-core.css +0 -179
  28. package/build/styles/css/neptune.css +0 -675
  29. package/build/styles/css/popovers.css +0 -56
  30. package/build/styles/css/tooltip.css +0 -28
  31. package/build/styles/main.css +57 -809
  32. package/build/styles/styles/less/accordion.css +0 -28
  33. package/build/styles/styles/less/button-groups.css +0 -28
  34. package/build/styles/styles/less/buttons.css +0 -28
  35. package/build/styles/styles/less/decision.css +0 -28
  36. package/build/styles/styles/less/dropdowns.css +0 -56
  37. package/build/styles/styles/less/droppable.css +0 -28
  38. package/build/styles/styles/less/footer.css +0 -61
  39. package/build/styles/styles/less/forms/bootstrap-forms.css +0 -112
  40. package/build/styles/styles/less/input-groups.css +0 -183
  41. package/build/styles/styles/less/navbar.css +0 -56
  42. package/build/styles/styles/less/neptune-core.css +0 -179
  43. package/build/styles/styles/less/neptune.css +0 -675
  44. package/build/styles/styles/less/popovers.css +0 -56
  45. package/build/styles/styles/less/tooltip.css +0 -28
  46. package/build/types/SentimentSurface/SentimentSurface.d.ts +1 -0
  47. package/build/types/SentimentSurface/SentimentSurface.d.ts.map +1 -1
  48. package/build/types/SentimentSurface/SentimentSurface.types.d.ts +9 -0
  49. package/build/types/SentimentSurface/SentimentSurface.types.d.ts.map +1 -1
  50. package/build/types/SentimentSurface/index.d.ts +1 -1
  51. package/build/types/SentimentSurface/index.d.ts.map +1 -1
  52. package/build/types/Tag/Tag.d.ts +24 -0
  53. package/build/types/Tag/Tag.d.ts.map +1 -0
  54. package/build/types/Tag/Tag.types.d.ts +39 -0
  55. package/build/types/Tag/Tag.types.d.ts.map +1 -0
  56. package/build/types/Tag/index.d.ts +3 -0
  57. package/build/types/Tag/index.d.ts.map +1 -0
  58. package/build/types/index.d.ts +3 -1
  59. package/build/types/index.d.ts.map +1 -1
  60. package/package.json +1 -1
  61. package/src/Inputs/Input/Input.css +0 -84
  62. package/src/Inputs/TextArea/TextArea.css +0 -84
  63. package/src/SentimentSurface/SentimentSurface.test.tsx +24 -0
  64. package/src/SentimentSurface/SentimentSurface.tsx +3 -1
  65. package/src/SentimentSurface/SentimentSurface.types.ts +11 -0
  66. package/src/SentimentSurface/_stories/SentimentSurface.story.tsx +10 -0
  67. package/src/SentimentSurface/index.ts +1 -0
  68. package/src/Tag/Tag.css +35 -0
  69. package/src/Tag/Tag.less +35 -0
  70. package/src/Tag/Tag.test.tsx +72 -0
  71. package/src/Tag/Tag.tsx +60 -0
  72. package/src/Tag/Tag.types.ts +46 -0
  73. package/src/Tag/_stories/Tag.story.tsx +245 -0
  74. package/src/Tag/_stories/Tag.test.story.tsx +120 -0
  75. package/src/Tag/index.ts +2 -0
  76. package/src/_deprecated/Select/Select.css +0 -28
  77. package/src/index.ts +3 -0
  78. package/src/main.css +57 -809
  79. package/src/main.less +1 -0
  80. package/src/styles/less/accordion.css +0 -28
  81. package/src/styles/less/button-groups.css +0 -28
  82. package/src/styles/less/buttons.css +0 -28
  83. package/src/styles/less/core/_typography.less +0 -12
  84. package/src/styles/less/decision.css +0 -28
  85. package/src/styles/less/dropdowns.css +0 -56
  86. package/src/styles/less/droppable.css +0 -28
  87. package/src/styles/less/footer.css +0 -61
  88. package/src/styles/less/forms/bootstrap-forms.css +0 -112
  89. package/src/styles/less/input-groups.css +0 -183
  90. package/src/styles/less/navbar.css +0 -56
  91. package/src/styles/less/neptune-core.css +0 -179
  92. package/src/styles/less/neptune.css +0 -675
  93. package/src/styles/less/popovers.css +0 -56
  94. package/src/styles/less/tooltip.css +0 -28
  95. package/src/test-utils/assets/card-payment-bakery.webp +0 -0
package/src/main.less CHANGED
@@ -86,6 +86,7 @@
86
86
  @import "./_deprecated/SwitchOption/SwitchOption.less";
87
87
  @import "./Tabs/Tabs.less";
88
88
  @import "./Table/Table.less";
89
+ @import "./Tag/Tag.less";
89
90
  @import "./Tile/Tile.less";
90
91
  @import "./Tooltip/Tooltip.less";
91
92
  @import "./Typeahead/Typeahead.less";
@@ -110,34 +110,6 @@
110
110
  margin-block-start: 4px;
111
111
  margin-block-start: var(--size-4);
112
112
  }
113
- @supports (hyphenate-limit-chars: 1) {
114
- .decision__content {
115
- hyphens: auto;
116
- hyphenate-limit-chars: 7 3;
117
- }
118
- @media (min-width: 840px) {
119
- .decision__content {
120
- hyphenate-limit-chars: 8 3;
121
- }
122
- }
123
- @media (min-width: 1160px) {
124
- .decision__content {
125
- hyphenate-limit-chars: 10 4 3;
126
- }
127
- }
128
- }
129
- @supports (not (hyphenate-limit-chars: 1)) and (-webkit-hyphenate-limit-before: 1) {
130
- .decision__content {
131
- hyphens: auto;
132
- -webkit-hyphenate-limit-before: 3;
133
- -webkit-hyphenate-limit-after: 3;
134
- }
135
- @media (min-width: 1160px) {
136
- .decision__content {
137
- -webkit-hyphenate-limit-before: 4;
138
- }
139
- }
140
- }
141
113
  .decision + .decision {
142
114
  margin-block-start: -1px;
143
115
  }
@@ -355,31 +355,3 @@
355
355
  color: #5d7079;
356
356
  color: var(--color-content-secondary);
357
357
  }
358
- @supports (hyphenate-limit-chars: 1) {
359
- .btn-group .secondary {
360
- hyphens: auto;
361
- hyphenate-limit-chars: 7 3;
362
- }
363
- @media (min-width: 840px) {
364
- .btn-group .secondary {
365
- hyphenate-limit-chars: 8 3;
366
- }
367
- }
368
- @media (min-width: 1160px) {
369
- .btn-group .secondary {
370
- hyphenate-limit-chars: 10 4 3;
371
- }
372
- }
373
- }
374
- @supports (not (hyphenate-limit-chars: 1)) and (-webkit-hyphenate-limit-before: 1) {
375
- .btn-group .secondary {
376
- hyphens: auto;
377
- -webkit-hyphenate-limit-before: 3;
378
- -webkit-hyphenate-limit-after: 3;
379
- }
380
- @media (min-width: 1160px) {
381
- .btn-group .secondary {
382
- -webkit-hyphenate-limit-before: 4;
383
- }
384
- }
385
- }
@@ -27,34 +27,6 @@
27
27
  -moz-user-select: none;
28
28
  user-select: none;
29
29
  }
30
- @supports (hyphenate-limit-chars: 1) {
31
- .btn {
32
- hyphens: auto;
33
- hyphenate-limit-chars: 7 3;
34
- }
35
- @media (min-width: 840px) {
36
- .btn {
37
- hyphenate-limit-chars: 8 3;
38
- }
39
- }
40
- @media (min-width: 1160px) {
41
- .btn {
42
- hyphenate-limit-chars: 10 4 3;
43
- }
44
- }
45
- }
46
- @supports (not (hyphenate-limit-chars: 1)) and (-webkit-hyphenate-limit-before: 1) {
47
- .btn {
48
- hyphens: auto;
49
- -webkit-hyphenate-limit-before: 3;
50
- -webkit-hyphenate-limit-after: 3;
51
- }
52
- @media (min-width: 1160px) {
53
- .btn {
54
- -webkit-hyphenate-limit-before: 4;
55
- }
56
- }
57
- }
58
30
  .btn .dropdown-menu > li > a {
59
31
  font-size: 1rem;
60
32
  font-size: var(--font-size-16);
@@ -135,7 +135,6 @@ small,
135
135
  line-height: 155%;
136
136
  letter-spacing: -0.006em;
137
137
  font-weight: var(--font-weight-regular);
138
- .np-text-hyphenated;
139
138
  }
140
139
 
141
140
  /* DEPRECATED: use .np-text-body-default-bold instead */
@@ -150,7 +149,6 @@ small,
150
149
  line-height: 155%;
151
150
  letter-spacing: -0.006em;
152
151
  font-weight: var(--font-weight-semi-bold);
153
- .np-text-hyphenated;
154
152
  }
155
153
 
156
154
  /* DEPRECATED: use .np-text-body-large instead */
@@ -162,7 +160,6 @@ small,
162
160
  font-size: var(--font-size-16);
163
161
  line-height: 150%;
164
162
  letter-spacing: -0.011em;
165
- .np-text-hyphenated;
166
163
  }
167
164
 
168
165
  /* DEPRECATED: use np-text-body-large-bold instead */
@@ -173,7 +170,6 @@ small,
173
170
  font-size: var(--font-size-16);
174
171
  line-height: 150%;
175
172
  letter-spacing: -0.011em;
176
- .np-text-hyphenated;
177
173
  }
178
174
 
179
175
  // LINK
@@ -284,14 +280,6 @@ a,
284
280
  }
285
281
  }
286
282
 
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
-
295
283
  :lang(af),
296
284
  :lang(sq),
297
285
  :lang(eu),
@@ -72,34 +72,6 @@
72
72
  margin-block-start: 4px;
73
73
  margin-block-start: var(--size-4);
74
74
  }
75
- @supports (hyphenate-limit-chars: 1) {
76
- .decision__content {
77
- hyphens: auto;
78
- hyphenate-limit-chars: 7 3;
79
- }
80
- @media (min-width: 840px) {
81
- .decision__content {
82
- hyphenate-limit-chars: 8 3;
83
- }
84
- }
85
- @media (min-width: 1160px) {
86
- .decision__content {
87
- hyphenate-limit-chars: 10 4 3;
88
- }
89
- }
90
- }
91
- @supports (not (hyphenate-limit-chars: 1)) and (-webkit-hyphenate-limit-before: 1) {
92
- .decision__content {
93
- hyphens: auto;
94
- -webkit-hyphenate-limit-before: 3;
95
- -webkit-hyphenate-limit-after: 3;
96
- }
97
- @media (min-width: 1160px) {
98
- .decision__content {
99
- -webkit-hyphenate-limit-before: 4;
100
- }
101
- }
102
- }
103
75
  .decision + .decision {
104
76
  margin-block-start: -1px;
105
77
  }
@@ -31,34 +31,6 @@
31
31
  transform: translateY(-10px) scale(0.95, 0.95);
32
32
  visibility: hidden;
33
33
  }
34
- @supports (hyphenate-limit-chars: 1) {
35
- .dropdown-menu {
36
- hyphens: auto;
37
- hyphenate-limit-chars: 7 3;
38
- }
39
- @media (min-width: 840px) {
40
- .dropdown-menu {
41
- hyphenate-limit-chars: 8 3;
42
- }
43
- }
44
- @media (min-width: 1160px) {
45
- .dropdown-menu {
46
- hyphenate-limit-chars: 10 4 3;
47
- }
48
- }
49
- }
50
- @supports (not (hyphenate-limit-chars: 1)) and (-webkit-hyphenate-limit-before: 1) {
51
- .dropdown-menu {
52
- hyphens: auto;
53
- -webkit-hyphenate-limit-before: 3;
54
- -webkit-hyphenate-limit-after: 3;
55
- }
56
- @media (min-width: 1160px) {
57
- .dropdown-menu {
58
- -webkit-hyphenate-limit-before: 4;
59
- }
60
- }
61
- }
62
34
  .np-theme-personal .dropdown-menu,
63
35
  .np-theme-personal--forest-green .dropdown-menu,
64
36
  .np-theme-personal--dark .dropdown-menu {
@@ -104,34 +76,6 @@
104
76
  color: var(--color-content-primary);
105
77
  white-space: nowrap;
106
78
  }
107
- @supports (hyphenate-limit-chars: 1) {
108
- .dropdown-menu > li > a {
109
- hyphens: auto;
110
- hyphenate-limit-chars: 7 3;
111
- }
112
- @media (min-width: 840px) {
113
- .dropdown-menu > li > a {
114
- hyphenate-limit-chars: 8 3;
115
- }
116
- }
117
- @media (min-width: 1160px) {
118
- .dropdown-menu > li > a {
119
- hyphenate-limit-chars: 10 4 3;
120
- }
121
- }
122
- }
123
- @supports (not (hyphenate-limit-chars: 1)) and (-webkit-hyphenate-limit-before: 1) {
124
- .dropdown-menu > li > a {
125
- hyphens: auto;
126
- -webkit-hyphenate-limit-before: 3;
127
- -webkit-hyphenate-limit-after: 3;
128
- }
129
- @media (min-width: 1160px) {
130
- .dropdown-menu > li > a {
131
- -webkit-hyphenate-limit-before: 4;
132
- }
133
- }
134
- }
135
79
  .dropdown-menu > li > a .secondary {
136
80
  display: block;
137
81
  white-space: normal;
@@ -13,34 +13,6 @@
13
13
  overflow: auto;
14
14
  transition: border-color 0.15s linear;
15
15
  }
16
- @supports (hyphenate-limit-chars: 1) {
17
- .droppable {
18
- hyphens: auto;
19
- hyphenate-limit-chars: 7 3;
20
- }
21
- @media (min-width: 840px) {
22
- .droppable {
23
- hyphenate-limit-chars: 8 3;
24
- }
25
- }
26
- @media (min-width: 1160px) {
27
- .droppable {
28
- hyphenate-limit-chars: 10 4 3;
29
- }
30
- }
31
- }
32
- @supports (not (hyphenate-limit-chars: 1)) and (-webkit-hyphenate-limit-before: 1) {
33
- .droppable {
34
- hyphens: auto;
35
- -webkit-hyphenate-limit-before: 3;
36
- -webkit-hyphenate-limit-after: 3;
37
- }
38
- @media (min-width: 1160px) {
39
- .droppable {
40
- -webkit-hyphenate-limit-before: 4;
41
- }
42
- }
43
- }
44
16
  .droppable:hover {
45
17
  border-color: #b5b7ba;
46
18
  border-color: var(--color-interactive-secondary-hover);
@@ -12,34 +12,6 @@
12
12
  padding-block-end: calc(8px * 10);
13
13
  padding-block-end: calc(var(--size-8) * 10);
14
14
  }
15
- @supports (hyphenate-limit-chars: 1) {
16
- .footer {
17
- hyphens: auto;
18
- hyphenate-limit-chars: 7 3;
19
- }
20
- @media (min-width: 840px) {
21
- .footer {
22
- hyphenate-limit-chars: 8 3;
23
- }
24
- }
25
- @media (min-width: 1160px) {
26
- .footer {
27
- hyphenate-limit-chars: 10 4 3;
28
- }
29
- }
30
- }
31
- @supports (not (hyphenate-limit-chars: 1)) and (-webkit-hyphenate-limit-before: 1) {
32
- .footer {
33
- hyphens: auto;
34
- -webkit-hyphenate-limit-before: 3;
35
- -webkit-hyphenate-limit-after: 3;
36
- }
37
- @media (min-width: 1160px) {
38
- .footer {
39
- -webkit-hyphenate-limit-before: 4;
40
- }
41
- }
42
- }
43
15
  @media (min-width: 600px) {
44
16
  .footer {
45
17
  padding-block-start: calc(8px * 15);
@@ -67,39 +39,6 @@
67
39
  font-weight: 400;
68
40
  font-weight: var(--font-weight-regular);
69
41
  }
70
- @supports (hyphenate-limit-chars: 1) {
71
- .footer .footer-link,
72
- .footer .link-icon {
73
- hyphens: auto;
74
- hyphenate-limit-chars: 7 3;
75
- }
76
- @media (min-width: 840px) {
77
- .footer .footer-link,
78
- .footer .link-icon {
79
- hyphenate-limit-chars: 8 3;
80
- }
81
- }
82
- @media (min-width: 1160px) {
83
- .footer .footer-link,
84
- .footer .link-icon {
85
- hyphenate-limit-chars: 10 4 3;
86
- }
87
- }
88
- }
89
- @supports (not (hyphenate-limit-chars: 1)) and (-webkit-hyphenate-limit-before: 1) {
90
- .footer .footer-link,
91
- .footer .link-icon {
92
- hyphens: auto;
93
- -webkit-hyphenate-limit-before: 3;
94
- -webkit-hyphenate-limit-after: 3;
95
- }
96
- @media (min-width: 1160px) {
97
- .footer .footer-link,
98
- .footer .link-icon {
99
- -webkit-hyphenate-limit-before: 4;
100
- }
101
- }
102
- }
103
42
  .footer .footer-link:hover,
104
43
  .footer .link-icon:hover,
105
44
  .footer .footer-link:active,
@@ -103,34 +103,6 @@ textarea.form-control,
103
103
  select[multiple].form-control {
104
104
  block-size: auto;
105
105
  }
106
- @supports (hyphenate-limit-chars: 1) {
107
- .form-control {
108
- hyphens: auto;
109
- hyphenate-limit-chars: 7 3;
110
- }
111
- @media (min-width: 840px) {
112
- .form-control {
113
- hyphenate-limit-chars: 8 3;
114
- }
115
- }
116
- @media (min-width: 1160px) {
117
- .form-control {
118
- hyphenate-limit-chars: 10 4 3;
119
- }
120
- }
121
- }
122
- @supports (not (hyphenate-limit-chars: 1)) and (-webkit-hyphenate-limit-before: 1) {
123
- .form-control {
124
- hyphens: auto;
125
- -webkit-hyphenate-limit-before: 3;
126
- -webkit-hyphenate-limit-after: 3;
127
- }
128
- @media (min-width: 1160px) {
129
- .form-control {
130
- -webkit-hyphenate-limit-before: 4;
131
- }
132
- }
133
- }
134
106
  .form-control:not(.disabled):not(:disabled):focus {
135
107
  border-color: #0081ba;
136
108
  border-color: var(--color-interactive-accent-active);
@@ -320,34 +292,6 @@ textarea.input-sm,
320
292
  select[multiple].input-sm {
321
293
  block-size: auto;
322
294
  }
323
- @supports (hyphenate-limit-chars: 1) {
324
- .input-sm {
325
- hyphens: auto;
326
- hyphenate-limit-chars: 7 3;
327
- }
328
- @media (min-width: 840px) {
329
- .input-sm {
330
- hyphenate-limit-chars: 8 3;
331
- }
332
- }
333
- @media (min-width: 1160px) {
334
- .input-sm {
335
- hyphenate-limit-chars: 10 4 3;
336
- }
337
- }
338
- }
339
- @supports (not (hyphenate-limit-chars: 1)) and (-webkit-hyphenate-limit-before: 1) {
340
- .input-sm {
341
- hyphens: auto;
342
- -webkit-hyphenate-limit-before: 3;
343
- -webkit-hyphenate-limit-after: 3;
344
- }
345
- @media (min-width: 1160px) {
346
- .input-sm {
347
- -webkit-hyphenate-limit-before: 4;
348
- }
349
- }
350
- }
351
295
  .form-group-sm .form-control,
352
296
  .navbar .form-control {
353
297
  block-size: 32px;
@@ -396,34 +340,6 @@ textarea.input-lg,
396
340
  select[multiple].input-lg {
397
341
  block-size: auto;
398
342
  }
399
- @supports (hyphenate-limit-chars: 1) {
400
- .input-lg {
401
- hyphens: auto;
402
- hyphenate-limit-chars: 7 3;
403
- }
404
- @media (min-width: 840px) {
405
- .input-lg {
406
- hyphenate-limit-chars: 8 3;
407
- }
408
- }
409
- @media (min-width: 1160px) {
410
- .input-lg {
411
- hyphenate-limit-chars: 10 4 3;
412
- }
413
- }
414
- }
415
- @supports (not (hyphenate-limit-chars: 1)) and (-webkit-hyphenate-limit-before: 1) {
416
- .input-lg {
417
- hyphens: auto;
418
- -webkit-hyphenate-limit-before: 3;
419
- -webkit-hyphenate-limit-after: 3;
420
- }
421
- @media (min-width: 1160px) {
422
- .input-lg {
423
- -webkit-hyphenate-limit-before: 4;
424
- }
425
- }
426
- }
427
343
  .form-group-lg {
428
344
  position: relative;
429
345
  }
@@ -2024,34 +1940,6 @@ input[type="checkbox"]:not(.disabled):not(:disabled):indeterminate:active + .tw-
2024
1940
  color: #768e9c;
2025
1941
  color: var(--color-content-tertiary);
2026
1942
  }
2027
- @supports (hyphenate-limit-chars: 1) {
2028
- .form-control-placeholder {
2029
- hyphens: auto;
2030
- hyphenate-limit-chars: 7 3;
2031
- }
2032
- @media (min-width: 840px) {
2033
- .form-control-placeholder {
2034
- hyphenate-limit-chars: 8 3;
2035
- }
2036
- }
2037
- @media (min-width: 1160px) {
2038
- .form-control-placeholder {
2039
- hyphenate-limit-chars: 10 4 3;
2040
- }
2041
- }
2042
- }
2043
- @supports (not (hyphenate-limit-chars: 1)) and (-webkit-hyphenate-limit-before: 1) {
2044
- .form-control-placeholder {
2045
- hyphens: auto;
2046
- -webkit-hyphenate-limit-before: 3;
2047
- -webkit-hyphenate-limit-after: 3;
2048
- }
2049
- @media (min-width: 1160px) {
2050
- .form-control-placeholder {
2051
- -webkit-hyphenate-limit-before: 4;
2052
- }
2053
- }
2054
- }
2055
1943
  .np-theme-personal .btn-input,
2056
1944
  .np-theme-personal .input-group,
2057
1945
  .np-theme-personal .form-control,