@transferwise/components 0.0.0-experimental-f715cf3 → 0.0.0-experimental-9039e6d

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 (105) hide show
  1. package/build/i18n/en.json +5 -0
  2. package/build/i18n/en.json.js +5 -0
  3. package/build/i18n/en.json.js.map +1 -1
  4. package/build/i18n/en.json.mjs +5 -0
  5. package/build/i18n/en.json.mjs.map +1 -1
  6. package/build/index.js +0 -2
  7. package/build/index.js.map +1 -1
  8. package/build/index.mjs +0 -1
  9. package/build/index.mjs.map +1 -1
  10. package/build/logo/Logo.js +11 -131
  11. package/build/logo/Logo.js.map +1 -1
  12. package/build/logo/Logo.mjs +1 -121
  13. package/build/logo/Logo.mjs.map +1 -1
  14. package/build/logo/logo-assets.js +134 -0
  15. package/build/logo/logo-assets.js.map +1 -0
  16. package/build/logo/logo-assets.mjs +125 -0
  17. package/build/logo/logo-assets.mjs.map +1 -0
  18. package/build/main.css +274 -30
  19. package/build/money/Money.js +5 -2
  20. package/build/money/Money.js.map +1 -1
  21. package/build/money/Money.mjs +5 -2
  22. package/build/money/Money.mjs.map +1 -1
  23. package/build/styles/main.css +274 -30
  24. package/build/styles/table/Table.css +274 -0
  25. package/build/types/index.d.ts +0 -2
  26. package/build/types/index.d.ts.map +1 -1
  27. package/build/types/logo/Logo.d.ts.map +1 -1
  28. package/build/types/logo/logo-assets.d.ts +10 -0
  29. package/build/types/logo/logo-assets.d.ts.map +1 -0
  30. package/build/types/money/Money.d.ts +2 -1
  31. package/build/types/money/Money.d.ts.map +1 -1
  32. package/build/types/table/Table.d.ts +23 -0
  33. package/build/types/table/Table.d.ts.map +1 -0
  34. package/build/types/table/Table.messages.d.ts +24 -0
  35. package/build/types/table/Table.messages.d.ts.map +1 -0
  36. package/build/types/table/TableCell.d.ts +40 -0
  37. package/build/types/table/TableCell.d.ts.map +1 -0
  38. package/build/types/table/TableHeader.d.ts +13 -0
  39. package/build/types/table/TableHeader.d.ts.map +1 -0
  40. package/build/types/table/TableRow.d.ts +17 -0
  41. package/build/types/table/TableRow.d.ts.map +1 -0
  42. package/build/types/table/TableStatusText.d.ts +10 -0
  43. package/build/types/table/TableStatusText.d.ts.map +1 -0
  44. package/build/types/table/index.d.ts +6 -0
  45. package/build/types/table/index.d.ts.map +1 -0
  46. package/build/types/test-utils/index.d.ts +10 -0
  47. package/build/types/test-utils/index.d.ts.map +1 -1
  48. package/package.json +1 -2
  49. package/src/i18n/en.json +5 -0
  50. package/src/index.ts +0 -2
  51. package/src/logo/Logo.tsx +10 -8
  52. package/src/logo/__snapshots__/Logo.spec.tsx.snap +16 -16
  53. package/src/logo/logo-assets.tsx +137 -0
  54. package/src/main.css +274 -30
  55. package/src/main.less +1 -1
  56. package/src/money/Money.tsx +9 -2
  57. package/src/table/Table.css +274 -0
  58. package/src/table/Table.less +334 -0
  59. package/src/table/Table.messages.ts +24 -0
  60. package/src/table/Table.spec.tsx +82 -0
  61. package/src/table/Table.story.tsx +356 -0
  62. package/src/table/Table.tsx +167 -0
  63. package/src/table/TableCell.spec.tsx +298 -0
  64. package/src/table/TableCell.tsx +149 -0
  65. package/src/table/TableHeader.spec.tsx +50 -0
  66. package/src/table/TableHeader.tsx +74 -0
  67. package/src/table/TableRow.spec.tsx +112 -0
  68. package/src/table/TableRow.tsx +70 -0
  69. package/src/table/TableStatusText.spec.tsx +53 -0
  70. package/src/table/TableStatusText.tsx +40 -0
  71. package/src/table/index.ts +11 -0
  72. package/build/avatarLayout/AvatarLayout.js +0 -111
  73. package/build/avatarLayout/AvatarLayout.js.map +0 -1
  74. package/build/avatarLayout/AvatarLayout.mjs +0 -109
  75. package/build/avatarLayout/AvatarLayout.mjs.map +0 -1
  76. package/build/logo/svg/flag-inverse.svg +0 -1
  77. package/build/logo/svg/flag-platform-white.svg +0 -1
  78. package/build/logo/svg/flag-platform.svg +0 -1
  79. package/build/logo/svg/flag.svg +0 -1
  80. package/build/logo/svg/logo-business-inverse.svg +0 -1
  81. package/build/logo/svg/logo-business.svg +0 -1
  82. package/build/logo/svg/logo-inverse.svg +0 -1
  83. package/build/logo/svg/logo-platform-white.svg +0 -1
  84. package/build/logo/svg/logo-platform.svg +0 -1
  85. package/build/logo/svg/logo.svg +0 -1
  86. package/build/styles/avatarLayout/AvatarLayout.css +0 -30
  87. package/build/types/avatarLayout/AvatarLayout.d.ts +0 -11
  88. package/build/types/avatarLayout/AvatarLayout.d.ts.map +0 -1
  89. package/build/types/avatarLayout/index.d.ts +0 -3
  90. package/build/types/avatarLayout/index.d.ts.map +0 -1
  91. package/src/avatarLayout/AvatarLayout.css +0 -30
  92. package/src/avatarLayout/AvatarLayout.less +0 -39
  93. package/src/avatarLayout/AvatarLayout.story.tsx +0 -272
  94. package/src/avatarLayout/AvatarLayout.tsx +0 -91
  95. package/src/avatarLayout/index.ts +0 -2
  96. package/src/logo/svg/flag-inverse.svg +0 -1
  97. package/src/logo/svg/flag-platform-white.svg +0 -1
  98. package/src/logo/svg/flag-platform.svg +0 -1
  99. package/src/logo/svg/flag.svg +0 -1
  100. package/src/logo/svg/logo-business-inverse.svg +0 -1
  101. package/src/logo/svg/logo-business.svg +0 -1
  102. package/src/logo/svg/logo-inverse.svg +0 -1
  103. package/src/logo/svg/logo-platform-white.svg +0 -1
  104. package/src/logo/svg/logo-platform.svg +0 -1
  105. package/src/logo/svg/logo.svg +0 -1
package/src/main.css CHANGED
@@ -505,36 +505,6 @@ div.critical-comms .critical-comms-body {
505
505
  .np-avatar-view-non-interactive .np-avatar-view-content .wds-flag {
506
506
  box-shadow: none;
507
507
  }
508
- .np-avatar-layout {
509
- display: inline-flex;
510
- --np-avatar-layout-size: 48px;
511
- --np-avatar-size: 32px;
512
- }
513
- .np-avatar-layout-diagonal {
514
- width: var(--np-avatar-layout-size);
515
- height: var(--np-avatar-layout-size);
516
- }
517
- .np-avatar-layout-diagonal-mask {
518
- -webkit-mask-image: radial-gradient(circle at bottom calc(100% - var(--np-avatar-size) - var(--np-avatar-offset)) right calc(100% - var(--np-avatar-size) - var(--np-avatar-offset)), transparent 0, transparent calc(var(--np-avatar-size) / 2 + 2px), black 0);
519
- mask-image: radial-gradient(circle at bottom calc(100% - var(--np-avatar-size) - var(--np-avatar-offset)) right calc(100% - var(--np-avatar-size) - var(--np-avatar-offset)), transparent 0, transparent calc(var(--np-avatar-size) / 2 + 2px), black 0);
520
- }
521
- .np-avatar-layout-diagonal-child {
522
- margin-left: calc(var(--np-avatar-layout-size) - var(--np-avatar-size) * 2);
523
- margin-top: calc(var(--np-avatar-layout-size) - var(--np-avatar-size));
524
- }
525
- .np-avatar-layout-horizontal {
526
- width: calc(var(--np-avatar-size) * 2 - var(--np-avatar-offset) - 2px);
527
- height: var(--np-avatar-layout-size);
528
- }
529
- .np-avatar-layout-horizontal-mask {
530
- -webkit-mask-image: radial-gradient(circle at top calc(100% - (var(--np-avatar-size) / 2)) left calc(100% + (var(--np-avatar-size) / 2) - var(--np-avatar-offset)), transparent, transparent calc(var(--np-avatar-size) / 2 + 2px), black 0);
531
- mask-image: radial-gradient(circle at top calc(100% - (var(--np-avatar-size) / 2)) left calc(100% + (var(--np-avatar-size) / 2) - var(--np-avatar-offset)), transparent, transparent calc(var(--np-avatar-size) / 2 + 2px), black 0);
532
- -webkit-mask-image: radial-gradient(circle at top calc(100% - calc(var(--np-avatar-size) / 2)) left calc(100% + calc(var(--np-avatar-size) / 2) - var(--np-avatar-offset)), transparent, transparent calc(var(--np-avatar-size) / 2 + 2px), black 0);
533
- mask-image: radial-gradient(circle at top calc(100% - calc(var(--np-avatar-size) / 2)) left calc(100% + calc(var(--np-avatar-size) / 2) - var(--np-avatar-offset)), transparent, transparent calc(var(--np-avatar-size) / 2 + 2px), black 0);
534
- }
535
- .np-avatar-layout-horizontal-child {
536
- margin-left: calc(var(--np-avatar-offset) * -1);
537
- }
538
508
  .tw-badge {
539
509
  position: relative;
540
510
  display: inline-block;
@@ -5151,6 +5121,280 @@ html:not([dir="rtl"]) .np-navigation-option {
5151
5121
  padding: 0 var(--size-24);
5152
5122
  }
5153
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
+ }
5154
5398
  .np-tile {
5155
5399
  min-width: 120px;
5156
5400
  border-radius: 10px;
package/src/main.less CHANGED
@@ -4,7 +4,6 @@
4
4
  @import "./alert/Alert.less";
5
5
  @import "./avatar/Avatar.less";
6
6
  @import "./avatarView/AvatarView.less";
7
- @import "./avatarLayout/AvatarLayout.less";
8
7
  @import "./badge/Badge.less";
9
8
  @import "./button/Button.less";
10
9
  @import "./card/Card.less";
@@ -63,6 +62,7 @@
63
62
  @import "./summary/Summary.less";
64
63
  @import "./switch/Switch.less";
65
64
  @import "./tabs/Tabs.less";
65
+ @import "./table/Table.less";
66
66
  @import "./tile/Tile.less";
67
67
  @import "./tooltip/Tooltip.less";
68
68
  @import "./typeahead/Typeahead.less";
@@ -4,11 +4,18 @@ import { useIntl } from 'react-intl';
4
4
  export interface MoneyProps {
5
5
  amount: number;
6
6
  currency: string;
7
+ alwaysShowDecimals?: boolean;
7
8
  }
8
9
 
9
- const Money = ({ amount, currency }: MoneyProps) => {
10
+ const Money = ({ amount, currency, alwaysShowDecimals = false }: MoneyProps) => {
10
11
  const { locale } = useIntl();
11
- return <>{formatMoney(amount, currency, locale)}</>;
12
+ return (
13
+ <>
14
+ {formatMoney(amount, currency, locale, {
15
+ alwaysShowDecimals,
16
+ })}
17
+ </>
18
+ );
12
19
  };
13
20
 
14
21
  export default Money;
@@ -0,0 +1,274 @@
1
+ .np-table {
2
+ width: 100%;
3
+ background-color: transparent;
4
+ }
5
+ .np-table-outer-container {
6
+ border-radius: 16px;
7
+ border-radius: var(--radius-medium);
8
+ }
9
+ .np-table-outer-container:focus {
10
+ outline: none;
11
+ }
12
+ .np-table-outer-container:focus-visible {
13
+ outline: var(--ring-outline-color) solid var(--ring-outline-width);
14
+ outline-offset: var(--ring-outline-offset);
15
+ }
16
+ .np-table-outer-container:focus-visible {
17
+ outline-offset: 0;
18
+ }
19
+ .np-table-outer-container--center {
20
+ margin-right: auto;
21
+ margin-left: auto;
22
+ }
23
+ @media (max-width: 767px) {
24
+ .np-table-outer-container--center {
25
+ width: 100%;
26
+ }
27
+ }
28
+ .np-table-outer-container--full-width {
29
+ width: 100%;
30
+ }
31
+ .np-table-container {
32
+ padding: 8px;
33
+ padding: var(--size-8);
34
+ background-color: rgba(134,167,189,0.10196);
35
+ background-color: var(--color-background-neutral);
36
+ border-radius: inherit;
37
+ }
38
+ .np-table-container--loading .np-table-inner-container {
39
+ background-image: none;
40
+ }
41
+ .np-table-inner-container {
42
+ 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));
43
+ background-position: left center, right center, left center, right center;
44
+ background-repeat: no-repeat;
45
+ background-color: var(--color-contrast-overlay);
46
+ background-size: 15px 100%, 15px 100%, 15px 100%, 15px 100%;
47
+ background-attachment: local, local, scroll, scroll;
48
+ overflow-x: auto;
49
+ border-radius: 10px;
50
+ }
51
+ .np-theme-personal--dark .np-table-inner-container {
52
+ 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));
53
+ }
54
+ .np-table-row:last-child .np-table-cell:first-child {
55
+ border-bottom-left-radius: 10px;
56
+ }
57
+ .np-table-row:last-child .np-table-cell:last-child {
58
+ border-bottom-right-radius: 10px;
59
+ }
60
+ .np-table-row:focus {
61
+ outline: none;
62
+ }
63
+ .np-table-row:focus-visible {
64
+ outline: var(--ring-outline-color) solid var(--ring-outline-width);
65
+ outline-offset: var(--ring-outline-offset);
66
+ }
67
+ .np-table-row:focus-visible {
68
+ outline-offset: -2px;
69
+ border-radius: 6px;
70
+ }
71
+ .np-table-row--clickable .np-table-cell {
72
+ position: relative;
73
+ }
74
+ .np-table-row--clickable .np-table-cell:before {
75
+ display: none;
76
+ content: "";
77
+ position: absolute;
78
+ height: 100%;
79
+ width: 100%;
80
+ top: 0;
81
+ left: 0;
82
+ background-color: var(--color-background-screen-hover);
83
+ }
84
+ .np-table-row--clickable .np-table-cell:first-child:before,
85
+ .np-table-row--clickable .np-table-cell:last-child:before {
86
+ width: calc(100% - 8px);
87
+ width: calc(100% - var(--size-8));
88
+ }
89
+ .np-table-row--clickable .np-table-cell:first-child:before {
90
+ left: 8px;
91
+ left: var(--size-8);
92
+ border-top-left-radius: 6px;
93
+ border-bottom-left-radius: 6px;
94
+ }
95
+ .np-table-row--clickable .np-table-cell:last-child:before {
96
+ border-top-right-radius: 6px;
97
+ border-bottom-right-radius: 6px;
98
+ }
99
+ .np-table-row--clickable:hover .np-table-cell:before {
100
+ display: block;
101
+ }
102
+ .np-table-row--clickable:hover:focus-visible .np-table-cell:first-child:before,
103
+ .np-table-row--clickable:hover:focus-visible .np-table-cell:last-child:before {
104
+ width: 100%;
105
+ }
106
+ .np-table-row--clickable:hover:focus-visible .np-table-cell:first-child:before {
107
+ left: 0;
108
+ }
109
+ .np-table-row--cosmetic .np-table-cell {
110
+ height: 8px;
111
+ height: var(--size-8);
112
+ padding: 0;
113
+ }
114
+ .np-table-header,
115
+ .np-table-cell {
116
+ padding: 0;
117
+ }
118
+ .np-table-header:first-child,
119
+ .np-table-cell:first-child {
120
+ padding-left: 16px;
121
+ padding-left: var(--size-16);
122
+ }
123
+ .np-table-header:first-child .np-table-header-content,
124
+ .np-table-cell:first-child .np-table-header-content,
125
+ .np-table-header:first-child .np-table-cell-content,
126
+ .np-table-cell:first-child .np-table-cell-content {
127
+ padding-left: 0;
128
+ }
129
+ .np-table-header:last-child,
130
+ .np-table-cell:last-child {
131
+ padding-right: 16px;
132
+ padding-right: var(--size-16);
133
+ }
134
+ .np-table-header:last-child .np-table-header-content,
135
+ .np-table-cell:last-child .np-table-header-content,
136
+ .np-table-header:last-child .np-table-cell-content,
137
+ .np-table-cell:last-child .np-table-cell-content {
138
+ padding-right: 0;
139
+ }
140
+ .np-table-header.np-table-header--right > .np-text-body-default,
141
+ .np-table-cell.np-table-cell--right > .np-text-body-default {
142
+ text-align: right;
143
+ }
144
+ .np-table-header.np-table-header--right + .np-table-header:not(.np-table-header--right),
145
+ .np-table-cell.np-table-cell--right + .np-table-cell:not(.np-table-cell--right) {
146
+ padding-left: calc(8px + 12px);
147
+ padding-left: calc(var(--size-8) + var(--size-12));
148
+ }
149
+ .np-table-header.np-table-header--right .np-table-header-content,
150
+ .np-table-cell.np-table-cell--right .np-table-content {
151
+ justify-content: end;
152
+ }
153
+ .np-table-header-content,
154
+ .np-table-content {
155
+ display: flex;
156
+ align-items: center;
157
+ justify-content: start;
158
+ }
159
+ .np-table-header {
160
+ min-width: 160px;
161
+ padding-right: 8px;
162
+ padding-right: var(--size-8);
163
+ padding-bottom: 8px;
164
+ padding-bottom: var(--size-8);
165
+ padding-left: 8px;
166
+ padding-left: var(--size-8);
167
+ background-color: rgba(134,167,189,0.10196);
168
+ background-color: var(--color-background-neutral);
169
+ color: var(--color-interactive-primary);
170
+ }
171
+ .np-table-header-content {
172
+ padding-top: 5px;
173
+ padding-bottom: 5px;
174
+ white-space: nowrap;
175
+ line-height: 1.375rem;
176
+ line-height: var(--line-height-22);
177
+ letter-spacing: 0.0125em;
178
+ letter-spacing: var(--letter-spacing-sm);
179
+ }
180
+ .np-table-header--error {
181
+ color: var(--color-sentiment-negative);
182
+ }
183
+ .np-table-header--action {
184
+ min-width: 0;
185
+ padding: 0;
186
+ }
187
+ .np-table-cell {
188
+ padding: 16px 8px;
189
+ padding: var(--size-16) var(--size-8);
190
+ position: relative;
191
+ }
192
+ .np-table-cell--cosmetic {
193
+ padding: 0;
194
+ }
195
+ .np-table-cell--primary {
196
+ min-width: 200px;
197
+ }
198
+ .np-table-cell--currency .np-text-body-default {
199
+ white-space: nowrap;
200
+ }
201
+ .np-table-cell .tw-chevron {
202
+ margin-left: 8px;
203
+ margin-left: var(--size-8);
204
+ }
205
+ .np-table-cell-separator {
206
+ margin-top: 4px;
207
+ margin-top: var(--size-4);
208
+ margin-bottom: 4px;
209
+ margin-bottom: var(--size-4);
210
+ height: 1px;
211
+ background-color: rgba(134,167,189,0.10196);
212
+ background-color: var(--color-background-neutral);
213
+ padding: 0;
214
+ }
215
+ .np-table-cell .np-text-body-default-bold {
216
+ display: flex;
217
+ align-items: center;
218
+ color: #37517e;
219
+ color: var(--color-content-primary);
220
+ white-space: nowrap;
221
+ }
222
+ .np-table-cell .np-table-content--success {
223
+ color: var(--color-sentiment-positive);
224
+ }
225
+ .np-table-cell .np-table-content--error {
226
+ color: var(--color-sentiment-negative);
227
+ }
228
+ .np-table-cell .tw-loader {
229
+ margin: 150px auto;
230
+ }
231
+ @media (max-width: 320px) {
232
+ .np-table-cell .tw-loader {
233
+ margin-top: 70px;
234
+ margin-bottom: 70px;
235
+ }
236
+ }
237
+ .np-table-content {
238
+ gap: 12px;
239
+ gap: var(--size-12);
240
+ }
241
+ .np-table-content--success,
242
+ .np-table-content--error {
243
+ gap: 4px;
244
+ gap: var(--size-4);
245
+ }
246
+ .np-table-content--success .np-table-content-text,
247
+ .np-table-content--error .np-table-content-text {
248
+ line-height: 155%;
249
+ }
250
+ .np-table-content-media {
251
+ flex-shrink: 0;
252
+ }
253
+ .np-table-content-body {
254
+ display: flex;
255
+ flex-direction: column;
256
+ font-size: 0.75rem;
257
+ font-size: var(--font-size-12);
258
+ color: #768e9c;
259
+ color: var(--color-content-tertiary);
260
+ }
261
+ .np-table-content--reversed {
262
+ flex-direction: row-reverse;
263
+ }
264
+ .np-table-content--reversed .np-table-content-body {
265
+ align-items: end;
266
+ }
267
+ .np-table-empty-data {
268
+ display: flex;
269
+ align-items: center;
270
+ }
271
+ .np-table-empty-data .status-circle {
272
+ margin-right: 12px;
273
+ margin-right: var(--size-12);
274
+ }