@transferwise/components 46.80.0 → 46.82.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 (137) hide show
  1. package/build/avatar/Avatar.js +3 -0
  2. package/build/avatar/Avatar.js.map +1 -1
  3. package/build/avatar/Avatar.mjs +3 -0
  4. package/build/avatar/Avatar.mjs.map +1 -1
  5. package/build/avatarView/AvatarView.js +175 -0
  6. package/build/avatarView/AvatarView.js.map +1 -0
  7. package/build/avatarView/AvatarView.mjs +173 -0
  8. package/build/avatarView/AvatarView.mjs.map +1 -0
  9. package/build/avatarView/NotificationDot.js +59 -0
  10. package/build/avatarView/NotificationDot.js.map +1 -0
  11. package/build/avatarView/NotificationDot.mjs +57 -0
  12. package/build/avatarView/NotificationDot.mjs.map +1 -0
  13. package/build/avatarWrapper/AvatarWrapper.js +10 -4
  14. package/build/avatarWrapper/AvatarWrapper.js.map +1 -1
  15. package/build/avatarWrapper/AvatarWrapper.mjs +10 -4
  16. package/build/avatarWrapper/AvatarWrapper.mjs.map +1 -1
  17. package/build/badge/Badge.js +16 -4
  18. package/build/badge/Badge.js.map +1 -1
  19. package/build/badge/Badge.mjs +15 -3
  20. package/build/badge/Badge.mjs.map +1 -1
  21. package/build/badge/BadgeAssets.js +60 -0
  22. package/build/badge/BadgeAssets.js.map +1 -0
  23. package/build/badge/BadgeAssets.mjs +58 -0
  24. package/build/badge/BadgeAssets.mjs.map +1 -0
  25. package/build/common/circle/Circle.js +19 -1
  26. package/build/common/circle/Circle.js.map +1 -1
  27. package/build/common/circle/Circle.mjs +19 -1
  28. package/build/common/circle/Circle.mjs.map +1 -1
  29. package/build/i18n/en.json +5 -0
  30. package/build/i18n/en.json.js +5 -0
  31. package/build/i18n/en.json.js.map +1 -1
  32. package/build/i18n/en.json.mjs +5 -0
  33. package/build/i18n/en.json.mjs.map +1 -1
  34. package/build/i18n/zh-HK.json +5 -0
  35. package/build/i18n/zh-HK.json.js +5 -0
  36. package/build/i18n/zh-HK.json.js.map +1 -1
  37. package/build/i18n/zh-HK.json.mjs +5 -0
  38. package/build/i18n/zh-HK.json.mjs.map +1 -1
  39. package/build/index.js +18 -13
  40. package/build/index.js.map +1 -1
  41. package/build/index.mjs +10 -7
  42. package/build/index.mjs.map +1 -1
  43. package/build/main.css +348 -5
  44. package/build/money/Money.js +5 -2
  45. package/build/money/Money.js.map +1 -1
  46. package/build/money/Money.mjs +5 -2
  47. package/build/money/Money.mjs.map +1 -1
  48. package/build/styles/avatarView/AvatarView.css +36 -0
  49. package/build/styles/avatarView/NotificationDot.css +20 -0
  50. package/build/styles/badge/Badge.css +6 -5
  51. package/build/styles/common/circle/Circle.css +32 -0
  52. package/build/styles/main.css +348 -5
  53. package/build/styles/table/Table.css +274 -0
  54. package/build/types/avatar/Avatar.d.ts +3 -0
  55. package/build/types/avatar/Avatar.d.ts.map +1 -1
  56. package/build/types/avatarView/AvatarView.d.ts +26 -0
  57. package/build/types/avatarView/AvatarView.d.ts.map +1 -0
  58. package/build/types/avatarView/NotificationDot.d.ts +8 -0
  59. package/build/types/avatarView/NotificationDot.d.ts.map +1 -0
  60. package/build/types/avatarView/index.d.ts +3 -0
  61. package/build/types/avatarView/index.d.ts.map +1 -0
  62. package/build/types/avatarWrapper/AvatarWrapper.d.ts +3 -0
  63. package/build/types/avatarWrapper/AvatarWrapper.d.ts.map +1 -1
  64. package/build/types/badge/Badge.d.ts +9 -4
  65. package/build/types/badge/Badge.d.ts.map +1 -1
  66. package/build/types/badge/BadgeAssets.d.ts +14 -0
  67. package/build/types/badge/BadgeAssets.d.ts.map +1 -0
  68. package/build/types/badge/index.d.ts +2 -0
  69. package/build/types/badge/index.d.ts.map +1 -1
  70. package/build/types/common/circle/Circle.d.ts +2 -0
  71. package/build/types/common/circle/Circle.d.ts.map +1 -1
  72. package/build/types/index.d.ts +3 -1
  73. package/build/types/index.d.ts.map +1 -1
  74. package/build/types/money/Money.d.ts +2 -1
  75. package/build/types/money/Money.d.ts.map +1 -1
  76. package/build/types/table/Table.d.ts +23 -0
  77. package/build/types/table/Table.d.ts.map +1 -0
  78. package/build/types/table/Table.messages.d.ts +24 -0
  79. package/build/types/table/Table.messages.d.ts.map +1 -0
  80. package/build/types/table/TableCell.d.ts +40 -0
  81. package/build/types/table/TableCell.d.ts.map +1 -0
  82. package/build/types/table/TableHeader.d.ts +13 -0
  83. package/build/types/table/TableHeader.d.ts.map +1 -0
  84. package/build/types/table/TableRow.d.ts +17 -0
  85. package/build/types/table/TableRow.d.ts.map +1 -0
  86. package/build/types/table/TableStatusText.d.ts +10 -0
  87. package/build/types/table/TableStatusText.d.ts.map +1 -0
  88. package/build/types/table/index.d.ts +6 -0
  89. package/build/types/table/index.d.ts.map +1 -0
  90. package/build/types/test-utils/index.d.ts +10 -0
  91. package/build/types/test-utils/index.d.ts.map +1 -1
  92. package/package.json +3 -3
  93. package/src/avatar/Avatar.tsx +3 -0
  94. package/src/avatarView/AvatarView.css +36 -0
  95. package/src/avatarView/AvatarView.less +27 -0
  96. package/src/avatarView/AvatarView.story.tsx +467 -0
  97. package/src/avatarView/AvatarView.tsx +171 -0
  98. package/src/avatarView/NotificationDot.css +20 -0
  99. package/src/avatarView/NotificationDot.less +24 -0
  100. package/src/avatarView/NotificationDot.tsx +35 -0
  101. package/src/avatarView/index.ts +2 -0
  102. package/src/avatarWrapper/AvatarWrapper.story.tsx +19 -0
  103. package/src/avatarWrapper/AvatarWrapper.tsx +3 -0
  104. package/src/badge/Badge.css +6 -5
  105. package/src/badge/Badge.less +4 -3
  106. package/src/badge/Badge.tsx +20 -6
  107. package/src/badge/BadgeAssets.tsx +61 -0
  108. package/src/badge/index.ts +3 -0
  109. package/src/circularButton/CircularButton.spec.tsx +0 -36
  110. package/src/common/circle/Circle.css +32 -0
  111. package/src/common/circle/Circle.less +35 -0
  112. package/src/common/circle/Circle.tsx +24 -1
  113. package/src/flowNavigation/FlowNavigation.story.tsx +19 -52
  114. package/src/i18n/en.json +5 -0
  115. package/src/i18n/zh-HK.json +5 -0
  116. package/src/index.ts +3 -0
  117. package/src/listItem/ListItem.story.tsx +5 -47
  118. package/src/main.css +348 -5
  119. package/src/main.less +2 -0
  120. package/src/money/Money.tsx +9 -2
  121. package/src/overlayHeader/OverlayHeader.story.tsx +6 -14
  122. package/src/table/Table.css +274 -0
  123. package/src/table/Table.less +334 -0
  124. package/src/table/Table.messages.ts +24 -0
  125. package/src/table/Table.spec.tsx +82 -0
  126. package/src/table/Table.story.tsx +356 -0
  127. package/src/table/Table.tsx +167 -0
  128. package/src/table/TableCell.spec.tsx +298 -0
  129. package/src/table/TableCell.tsx +149 -0
  130. package/src/table/TableHeader.spec.tsx +50 -0
  131. package/src/table/TableHeader.tsx +74 -0
  132. package/src/table/TableRow.spec.tsx +112 -0
  133. package/src/table/TableRow.tsx +70 -0
  134. package/src/table/TableStatusText.spec.tsx +53 -0
  135. package/src/table/TableStatusText.tsx +40 -0
  136. package/src/table/index.ts +11 -0
  137. package/src/circularButton/__snapshots__/CircularButton.spec.tsx.snap +0 -381
@@ -0,0 +1,20 @@
1
+ .np-notification-dot {
2
+ --np-notification-dot-size: 14px;
3
+ position: relative;
4
+ display: inline-block;
5
+ }
6
+ .np-notification-dot-mask {
7
+ -webkit-mask-image: radial-gradient(circle at bottom calc(100% - (var(--np-notification-dot-size) / 2)) left calc(100% - (var(--np-notification-dot-size) / 2)), transparent 0, transparent calc(var(--np-notification-dot-size) / 2 + var(--np-notification-dot-offset)), black 0);
8
+ mask-image: radial-gradient(circle at bottom calc(100% - (var(--np-notification-dot-size) / 2)) left calc(100% - (var(--np-notification-dot-size) / 2)), transparent 0, transparent calc(var(--np-notification-dot-size) / 2 + var(--np-notification-dot-offset)), black 0);
9
+ -webkit-mask-image: radial-gradient(circle at bottom calc(100% - calc(var(--np-notification-dot-size) / 2)) left calc(100% - calc(var(--np-notification-dot-size) / 2)), transparent 0, transparent calc(var(--np-notification-dot-size) / 2 + var(--np-notification-dot-offset)), black 0);
10
+ mask-image: radial-gradient(circle at bottom calc(100% - calc(var(--np-notification-dot-size) / 2)) left calc(100% - calc(var(--np-notification-dot-size) / 2)), transparent 0, transparent calc(var(--np-notification-dot-size) / 2 + var(--np-notification-dot-offset)), black 0);
11
+ }
12
+ .np-notification-dot-badge {
13
+ position: absolute;
14
+ width: var(--np-notification-dot-size);
15
+ height: var(--np-notification-dot-size);
16
+ background-color: var(--color-sentiment-negative);
17
+ border-radius: 9999px;
18
+ border-radius: var(--radius-full);
19
+ right: 0;
20
+ }
@@ -5,6 +5,7 @@
5
5
  --badge-mask: 2px;
6
6
  --badge-mask-offset: calc(var(--badge-size) / 2);
7
7
  --badge-border-color: rgba(255, 255, 255, 0.08);
8
+ --badge-content-position: 0px;
8
9
  }
9
10
  .tw-badge.tw-badge-lg {
10
11
  --badge-size: 24px;
@@ -14,8 +15,8 @@
14
15
  --badge-border-color: rgba(0, 0, 0, 0.08);
15
16
  }
16
17
  .tw-badge > .tw-badge__children {
17
- -webkit-mask-image: radial-gradient(circle at top calc(100% - var(--badge-mask-offset)) left calc(100% - var(--badge-mask-offset)), transparent 0, transparent calc(var(--badge-size) / 2 + var(--badge-mask)), black calc(var(--badge-size) / 2 + var(--badge-mask) + 0.5px));
18
- mask-image: radial-gradient(circle at top calc(100% - var(--badge-mask-offset)) left calc(100% - var(--badge-mask-offset)), transparent 0, transparent calc(var(--badge-size) / 2 + var(--badge-mask)), black calc(var(--badge-size) / 2 + var(--badge-mask) + 0.5px));
18
+ -webkit-mask-image: radial-gradient(circle at top calc(100% - var(--badge-mask-offset) - var(--badge-content-position)) left calc(100% - var(--badge-mask-offset) - var(--badge-content-position)), transparent 0, transparent calc(var(--badge-size) / 2 + var(--badge-mask)), black calc(var(--badge-size) / 2 + var(--badge-mask) + 0.5px));
19
+ mask-image: radial-gradient(circle at top calc(100% - var(--badge-mask-offset) - var(--badge-content-position)) left calc(100% - var(--badge-mask-offset) - var(--badge-content-position)), transparent 0, transparent calc(var(--badge-size) / 2 + var(--badge-mask)), black calc(var(--badge-size) / 2 + var(--badge-mask) + 0.5px));
19
20
  }
20
21
  [dir="rtl"] .tw-badge > .tw-badge__children {
21
22
  -webkit-mask-image: radial-gradient(circle at top calc(100% - var(--badge-mask-offset)) right calc(100% - var(--badge-mask-offset)), transparent 0, transparent calc(var(--badge-size) / 2 + var(--badge-mask)), black calc(var(--badge-size) / 2 + var(--badge-mask) + 0.5px));
@@ -25,8 +26,8 @@
25
26
  position: absolute;
26
27
  width: var(--badge-size);
27
28
  height: var(--badge-size);
28
- bottom: 0;
29
- right: 0;
29
+ bottom: var(--badge-content-position);
30
+ right: var(--badge-content-position);
30
31
  box-sizing: border-box;
31
32
  border-radius: 50%;
32
33
  text-align: center;
@@ -39,7 +40,7 @@
39
40
  user-select: none;
40
41
  }
41
42
  [dir="rtl"] .tw-badge > .tw-badge__content {
42
- left: 0;
43
+ left: var(--badge-content-position);
43
44
  right: auto;
44
45
  right: initial;
45
46
  }
@@ -4,8 +4,40 @@
4
4
  width: var(--circle-size);
5
5
  height: var(--circle-size);
6
6
  flex-shrink: 0;
7
+ --circle-border-color: var(--color-border-neutral);
8
+ --circle-border-width: 1px;
9
+ font-size: var(--circle-font-size);
10
+ font-weight: 600;
11
+ font-weight: var(--font-weight-semi-bold);
12
+ line-height: 1;
13
+ }
14
+ .np-circle .np-display {
15
+ font-size: var(--circle-font-size);
7
16
  }
8
17
  .np-circle .tw-icon > svg {
9
18
  height: var(--circle-icon-size);
10
19
  width: var(--circle-icon-size);
11
20
  }
21
+ .np-circle img,
22
+ .np-circle .wds-flag {
23
+ border-radius: 9999px;
24
+ border-radius: var(--radius-full);
25
+ width: 100%;
26
+ height: 100%;
27
+ -o-object-fit: cover;
28
+ object-fit: cover;
29
+ }
30
+ .np-circle-border {
31
+ position: relative;
32
+ }
33
+ .np-circle-border::after {
34
+ content: "";
35
+ position: absolute;
36
+ top: 0;
37
+ left: 0;
38
+ width: 100%;
39
+ height: 100%;
40
+ border-radius: 9999px;
41
+ border-radius: var(--radius-full);
42
+ box-shadow: inset 0 0 0 var(--circle-border-width) var(--circle-border-color);
43
+ }
@@ -469,6 +469,42 @@ div.critical-comms .critical-comms-body {
469
469
  .np-theme-personal .tw-avatar--outlined:not(.disabled):not(:disabled):hover {
470
470
  border-color: var(--color-interactive-primary-hover);
471
471
  }
472
+ .np-notification-dot {
473
+ --np-notification-dot-size: 14px;
474
+ position: relative;
475
+ display: inline-block;
476
+ }
477
+ .np-notification-dot-mask {
478
+ -webkit-mask-image: radial-gradient(circle at bottom calc(100% - (var(--np-notification-dot-size) / 2)) left calc(100% - (var(--np-notification-dot-size) / 2)), transparent 0, transparent calc(var(--np-notification-dot-size) / 2 + var(--np-notification-dot-offset)), black 0);
479
+ mask-image: radial-gradient(circle at bottom calc(100% - (var(--np-notification-dot-size) / 2)) left calc(100% - (var(--np-notification-dot-size) / 2)), transparent 0, transparent calc(var(--np-notification-dot-size) / 2 + var(--np-notification-dot-offset)), black 0);
480
+ -webkit-mask-image: radial-gradient(circle at bottom calc(100% - calc(var(--np-notification-dot-size) / 2)) left calc(100% - calc(var(--np-notification-dot-size) / 2)), transparent 0, transparent calc(var(--np-notification-dot-size) / 2 + var(--np-notification-dot-offset)), black 0);
481
+ mask-image: radial-gradient(circle at bottom calc(100% - calc(var(--np-notification-dot-size) / 2)) left calc(100% - calc(var(--np-notification-dot-size) / 2)), transparent 0, transparent calc(var(--np-notification-dot-size) / 2 + var(--np-notification-dot-offset)), black 0);
482
+ }
483
+ .np-notification-dot-badge {
484
+ position: absolute;
485
+ width: var(--np-notification-dot-size);
486
+ height: var(--np-notification-dot-size);
487
+ background-color: var(--color-sentiment-negative);
488
+ border-radius: 9999px;
489
+ border-radius: var(--radius-full);
490
+ right: 0;
491
+ }
492
+ .np-avatar-view .np-avatar-view-content {
493
+ color: var(--color-interactive-primary);
494
+ }
495
+ .np-avatar-view-interactive {
496
+ cursor: pointer;
497
+ }
498
+ .np-avatar-view-interactive .np-circle {
499
+ background-color: rgba(134,167,189,0.10196);
500
+ background-color: var(--color-background-neutral);
501
+ }
502
+ .np-avatar-view-non-interactive .np-circle {
503
+ background-color: transparent;
504
+ }
505
+ .np-avatar-view-non-interactive .np-avatar-view-content .wds-flag {
506
+ box-shadow: none;
507
+ }
472
508
  .tw-badge {
473
509
  position: relative;
474
510
  display: inline-block;
@@ -476,6 +512,7 @@ div.critical-comms .critical-comms-body {
476
512
  --badge-mask: 2px;
477
513
  --badge-mask-offset: calc(var(--badge-size) / 2);
478
514
  --badge-border-color: rgba(255, 255, 255, 0.08);
515
+ --badge-content-position: 0px;
479
516
  }
480
517
  .tw-badge.tw-badge-lg {
481
518
  --badge-size: 24px;
@@ -485,8 +522,8 @@ div.critical-comms .critical-comms-body {
485
522
  --badge-border-color: rgba(0, 0, 0, 0.08);
486
523
  }
487
524
  .tw-badge > .tw-badge__children {
488
- -webkit-mask-image: radial-gradient(circle at top calc(100% - var(--badge-mask-offset)) left calc(100% - var(--badge-mask-offset)), transparent 0, transparent calc(var(--badge-size) / 2 + var(--badge-mask)), black calc(var(--badge-size) / 2 + var(--badge-mask) + 0.5px));
489
- mask-image: radial-gradient(circle at top calc(100% - var(--badge-mask-offset)) left calc(100% - var(--badge-mask-offset)), transparent 0, transparent calc(var(--badge-size) / 2 + var(--badge-mask)), black calc(var(--badge-size) / 2 + var(--badge-mask) + 0.5px));
525
+ -webkit-mask-image: radial-gradient(circle at top calc(100% - var(--badge-mask-offset) - var(--badge-content-position)) left calc(100% - var(--badge-mask-offset) - var(--badge-content-position)), transparent 0, transparent calc(var(--badge-size) / 2 + var(--badge-mask)), black calc(var(--badge-size) / 2 + var(--badge-mask) + 0.5px));
526
+ mask-image: radial-gradient(circle at top calc(100% - var(--badge-mask-offset) - var(--badge-content-position)) left calc(100% - var(--badge-mask-offset) - var(--badge-content-position)), transparent 0, transparent calc(var(--badge-size) / 2 + var(--badge-mask)), black calc(var(--badge-size) / 2 + var(--badge-mask) + 0.5px));
490
527
  }
491
528
  [dir="rtl"] .tw-badge > .tw-badge__children {
492
529
  -webkit-mask-image: radial-gradient(circle at top calc(100% - var(--badge-mask-offset)) right calc(100% - var(--badge-mask-offset)), transparent 0, transparent calc(var(--badge-size) / 2 + var(--badge-mask)), black calc(var(--badge-size) / 2 + var(--badge-mask) + 0.5px));
@@ -496,8 +533,8 @@ div.critical-comms .critical-comms-body {
496
533
  position: absolute;
497
534
  width: var(--badge-size);
498
535
  height: var(--badge-size);
499
- bottom: 0;
500
- right: 0;
536
+ bottom: var(--badge-content-position);
537
+ right: var(--badge-content-position);
501
538
  box-sizing: border-box;
502
539
  border-radius: 50%;
503
540
  text-align: center;
@@ -510,7 +547,7 @@ div.critical-comms .critical-comms-body {
510
547
  user-select: none;
511
548
  }
512
549
  [dir="rtl"] .tw-badge > .tw-badge__content {
513
- left: 0;
550
+ left: var(--badge-content-position);
514
551
  right: auto;
515
552
  right: initial;
516
553
  }
@@ -1211,11 +1248,43 @@ div.critical-comms .critical-comms-body {
1211
1248
  width: var(--circle-size);
1212
1249
  height: var(--circle-size);
1213
1250
  flex-shrink: 0;
1251
+ --circle-border-color: var(--color-border-neutral);
1252
+ --circle-border-width: 1px;
1253
+ font-size: var(--circle-font-size);
1254
+ font-weight: 600;
1255
+ font-weight: var(--font-weight-semi-bold);
1256
+ line-height: 1;
1257
+ }
1258
+ .np-circle .np-display {
1259
+ font-size: var(--circle-font-size);
1214
1260
  }
1215
1261
  .np-circle .tw-icon > svg {
1216
1262
  height: var(--circle-icon-size);
1217
1263
  width: var(--circle-icon-size);
1218
1264
  }
1265
+ .np-circle img,
1266
+ .np-circle .wds-flag {
1267
+ border-radius: 9999px;
1268
+ border-radius: var(--radius-full);
1269
+ width: 100%;
1270
+ height: 100%;
1271
+ -o-object-fit: cover;
1272
+ object-fit: cover;
1273
+ }
1274
+ .np-circle-border {
1275
+ position: relative;
1276
+ }
1277
+ .np-circle-border::after {
1278
+ content: "";
1279
+ position: absolute;
1280
+ top: 0;
1281
+ left: 0;
1282
+ width: 100%;
1283
+ height: 100%;
1284
+ border-radius: 9999px;
1285
+ border-radius: var(--radius-full);
1286
+ box-shadow: inset 0 0 0 var(--circle-border-width) var(--circle-border-color);
1287
+ }
1219
1288
  .np-bottom-sheet {
1220
1289
  border-radius: 10px 10px 0 0;
1221
1290
  }
@@ -5052,6 +5121,280 @@ html:not([dir="rtl"]) .np-navigation-option {
5052
5121
  padding: 0 var(--size-24);
5053
5122
  }
5054
5123
  }
5124
+ .np-table {
5125
+ width: 100%;
5126
+ background-color: transparent;
5127
+ }
5128
+ .np-table-outer-container {
5129
+ border-radius: 16px;
5130
+ border-radius: var(--radius-medium);
5131
+ }
5132
+ .np-table-outer-container:focus {
5133
+ outline: none;
5134
+ }
5135
+ .np-table-outer-container:focus-visible {
5136
+ outline: var(--ring-outline-color) solid var(--ring-outline-width);
5137
+ outline-offset: var(--ring-outline-offset);
5138
+ }
5139
+ .np-table-outer-container:focus-visible {
5140
+ outline-offset: 0;
5141
+ }
5142
+ .np-table-outer-container--center {
5143
+ margin-right: auto;
5144
+ margin-left: auto;
5145
+ }
5146
+ @media (max-width: 767px) {
5147
+ .np-table-outer-container--center {
5148
+ width: 100%;
5149
+ }
5150
+ }
5151
+ .np-table-outer-container--full-width {
5152
+ width: 100%;
5153
+ }
5154
+ .np-table-container {
5155
+ padding: 8px;
5156
+ padding: var(--size-8);
5157
+ background-color: rgba(134,167,189,0.10196);
5158
+ background-color: var(--color-background-neutral);
5159
+ border-radius: inherit;
5160
+ }
5161
+ .np-table-container--loading .np-table-inner-container {
5162
+ background-image: none;
5163
+ }
5164
+ .np-table-inner-container {
5165
+ background-image: linear-gradient(to right, var(--color-contrast-overlay), var(--color-contrast-overlay)), linear-gradient(to right, var(--color-contrast-overlay), var(--color-contrast-overlay)), linear-gradient(to right, rgba(0, 0, 0, 0.1), rgba(255, 255, 255, 0)), linear-gradient(to left, rgba(0, 0, 0, 0.1), rgba(255, 255, 255, 0));
5166
+ background-position: left center, right center, left center, right center;
5167
+ background-repeat: no-repeat;
5168
+ background-color: var(--color-contrast-overlay);
5169
+ background-size: 15px 100%, 15px 100%, 15px 100%, 15px 100%;
5170
+ background-attachment: local, local, scroll, scroll;
5171
+ overflow-x: auto;
5172
+ border-radius: 10px;
5173
+ }
5174
+ .np-theme-personal--dark .np-table-inner-container {
5175
+ background-image: linear-gradient(to right, var(--color-contrast-overlay), var(--color-contrast-overlay)), linear-gradient(to right, var(--color-contrast-overlay), var(--color-contrast-overlay)), linear-gradient(to right, #000000, rgba(0, 0, 0, 0)), linear-gradient(to left, #000000, rgba(0, 0, 0, 0));
5176
+ }
5177
+ .np-table-row:last-child .np-table-cell:first-child {
5178
+ border-bottom-left-radius: 10px;
5179
+ }
5180
+ .np-table-row:last-child .np-table-cell:last-child {
5181
+ border-bottom-right-radius: 10px;
5182
+ }
5183
+ .np-table-row:focus {
5184
+ outline: none;
5185
+ }
5186
+ .np-table-row:focus-visible {
5187
+ outline: var(--ring-outline-color) solid var(--ring-outline-width);
5188
+ outline-offset: var(--ring-outline-offset);
5189
+ }
5190
+ .np-table-row:focus-visible {
5191
+ outline-offset: -2px;
5192
+ border-radius: 6px;
5193
+ }
5194
+ .np-table-row--clickable .np-table-cell {
5195
+ position: relative;
5196
+ }
5197
+ .np-table-row--clickable .np-table-cell:before {
5198
+ display: none;
5199
+ content: "";
5200
+ position: absolute;
5201
+ height: 100%;
5202
+ width: 100%;
5203
+ top: 0;
5204
+ left: 0;
5205
+ background-color: var(--color-background-screen-hover);
5206
+ }
5207
+ .np-table-row--clickable .np-table-cell:first-child:before,
5208
+ .np-table-row--clickable .np-table-cell:last-child:before {
5209
+ width: calc(100% - 8px);
5210
+ width: calc(100% - var(--size-8));
5211
+ }
5212
+ .np-table-row--clickable .np-table-cell:first-child:before {
5213
+ left: 8px;
5214
+ left: var(--size-8);
5215
+ border-top-left-radius: 6px;
5216
+ border-bottom-left-radius: 6px;
5217
+ }
5218
+ .np-table-row--clickable .np-table-cell:last-child:before {
5219
+ border-top-right-radius: 6px;
5220
+ border-bottom-right-radius: 6px;
5221
+ }
5222
+ .np-table-row--clickable:hover .np-table-cell:before {
5223
+ display: block;
5224
+ }
5225
+ .np-table-row--clickable:hover:focus-visible .np-table-cell:first-child:before,
5226
+ .np-table-row--clickable:hover:focus-visible .np-table-cell:last-child:before {
5227
+ width: 100%;
5228
+ }
5229
+ .np-table-row--clickable:hover:focus-visible .np-table-cell:first-child:before {
5230
+ left: 0;
5231
+ }
5232
+ .np-table-row--cosmetic .np-table-cell {
5233
+ height: 8px;
5234
+ height: var(--size-8);
5235
+ padding: 0;
5236
+ }
5237
+ .np-table-header,
5238
+ .np-table-cell {
5239
+ padding: 0;
5240
+ }
5241
+ .np-table-header:first-child,
5242
+ .np-table-cell:first-child {
5243
+ padding-left: 16px;
5244
+ padding-left: var(--size-16);
5245
+ }
5246
+ .np-table-header:first-child .np-table-header-content,
5247
+ .np-table-cell:first-child .np-table-header-content,
5248
+ .np-table-header:first-child .np-table-cell-content,
5249
+ .np-table-cell:first-child .np-table-cell-content {
5250
+ padding-left: 0;
5251
+ }
5252
+ .np-table-header:last-child,
5253
+ .np-table-cell:last-child {
5254
+ padding-right: 16px;
5255
+ padding-right: var(--size-16);
5256
+ }
5257
+ .np-table-header:last-child .np-table-header-content,
5258
+ .np-table-cell:last-child .np-table-header-content,
5259
+ .np-table-header:last-child .np-table-cell-content,
5260
+ .np-table-cell:last-child .np-table-cell-content {
5261
+ padding-right: 0;
5262
+ }
5263
+ .np-table-header.np-table-header--right > .np-text-body-default,
5264
+ .np-table-cell.np-table-cell--right > .np-text-body-default {
5265
+ text-align: right;
5266
+ }
5267
+ .np-table-header.np-table-header--right + .np-table-header:not(.np-table-header--right),
5268
+ .np-table-cell.np-table-cell--right + .np-table-cell:not(.np-table-cell--right) {
5269
+ padding-left: calc(8px + 12px);
5270
+ padding-left: calc(var(--size-8) + var(--size-12));
5271
+ }
5272
+ .np-table-header.np-table-header--right .np-table-header-content,
5273
+ .np-table-cell.np-table-cell--right .np-table-content {
5274
+ justify-content: end;
5275
+ }
5276
+ .np-table-header-content,
5277
+ .np-table-content {
5278
+ display: flex;
5279
+ align-items: center;
5280
+ justify-content: start;
5281
+ }
5282
+ .np-table-header {
5283
+ min-width: 160px;
5284
+ padding-right: 8px;
5285
+ padding-right: var(--size-8);
5286
+ padding-bottom: 8px;
5287
+ padding-bottom: var(--size-8);
5288
+ padding-left: 8px;
5289
+ padding-left: var(--size-8);
5290
+ background-color: rgba(134,167,189,0.10196);
5291
+ background-color: var(--color-background-neutral);
5292
+ color: var(--color-interactive-primary);
5293
+ }
5294
+ .np-table-header-content {
5295
+ padding-top: 5px;
5296
+ padding-bottom: 5px;
5297
+ white-space: nowrap;
5298
+ line-height: 1.375rem;
5299
+ line-height: var(--line-height-22);
5300
+ letter-spacing: 0.0125em;
5301
+ letter-spacing: var(--letter-spacing-sm);
5302
+ }
5303
+ .np-table-header--error {
5304
+ color: var(--color-sentiment-negative);
5305
+ }
5306
+ .np-table-header--action {
5307
+ min-width: 0;
5308
+ padding: 0;
5309
+ }
5310
+ .np-table-cell {
5311
+ padding: 16px 8px;
5312
+ padding: var(--size-16) var(--size-8);
5313
+ position: relative;
5314
+ }
5315
+ .np-table-cell--cosmetic {
5316
+ padding: 0;
5317
+ }
5318
+ .np-table-cell--primary {
5319
+ min-width: 200px;
5320
+ }
5321
+ .np-table-cell--currency .np-text-body-default {
5322
+ white-space: nowrap;
5323
+ }
5324
+ .np-table-cell .tw-chevron {
5325
+ margin-left: 8px;
5326
+ margin-left: var(--size-8);
5327
+ }
5328
+ .np-table-cell-separator {
5329
+ margin-top: 4px;
5330
+ margin-top: var(--size-4);
5331
+ margin-bottom: 4px;
5332
+ margin-bottom: var(--size-4);
5333
+ height: 1px;
5334
+ background-color: rgba(134,167,189,0.10196);
5335
+ background-color: var(--color-background-neutral);
5336
+ padding: 0;
5337
+ }
5338
+ .np-table-cell .np-text-body-default-bold {
5339
+ display: flex;
5340
+ align-items: center;
5341
+ color: #37517e;
5342
+ color: var(--color-content-primary);
5343
+ white-space: nowrap;
5344
+ }
5345
+ .np-table-cell .np-table-content--success {
5346
+ color: var(--color-sentiment-positive);
5347
+ }
5348
+ .np-table-cell .np-table-content--error {
5349
+ color: var(--color-sentiment-negative);
5350
+ }
5351
+ .np-table-cell .tw-loader {
5352
+ margin: 150px auto;
5353
+ }
5354
+ @media (max-width: 320px) {
5355
+ .np-table-cell .tw-loader {
5356
+ margin-top: 70px;
5357
+ margin-bottom: 70px;
5358
+ }
5359
+ }
5360
+ .np-table-content {
5361
+ gap: 12px;
5362
+ gap: var(--size-12);
5363
+ }
5364
+ .np-table-content--success,
5365
+ .np-table-content--error {
5366
+ gap: 4px;
5367
+ gap: var(--size-4);
5368
+ }
5369
+ .np-table-content--success .np-table-content-text,
5370
+ .np-table-content--error .np-table-content-text {
5371
+ line-height: 155%;
5372
+ }
5373
+ .np-table-content-media {
5374
+ flex-shrink: 0;
5375
+ }
5376
+ .np-table-content-body {
5377
+ display: flex;
5378
+ flex-direction: column;
5379
+ font-size: 0.75rem;
5380
+ font-size: var(--font-size-12);
5381
+ color: #768e9c;
5382
+ color: var(--color-content-tertiary);
5383
+ }
5384
+ .np-table-content--reversed {
5385
+ flex-direction: row-reverse;
5386
+ }
5387
+ .np-table-content--reversed .np-table-content-body {
5388
+ align-items: end;
5389
+ }
5390
+ .np-table-empty-data {
5391
+ display: flex;
5392
+ align-items: center;
5393
+ }
5394
+ .np-table-empty-data .status-circle {
5395
+ margin-right: 12px;
5396
+ margin-right: var(--size-12);
5397
+ }
5055
5398
  .np-tile {
5056
5399
  min-width: 120px;
5057
5400
  border-radius: 10px;