@transferwise/components 0.0.0-experimental-688d30c → 0.0.0-experimental-aeb1e07

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 (45) 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/main.css +292 -0
  7. package/build/styles/main.css +292 -0
  8. package/build/styles/table/Table.css +292 -0
  9. package/build/types/table/Table.d.ts +23 -0
  10. package/build/types/table/Table.d.ts.map +1 -0
  11. package/build/types/table/Table.messages.d.ts +24 -0
  12. package/build/types/table/Table.messages.d.ts.map +1 -0
  13. package/build/types/table/TableCell.d.ts +44 -0
  14. package/build/types/table/TableCell.d.ts.map +1 -0
  15. package/build/types/table/TableHeader.d.ts +13 -0
  16. package/build/types/table/TableHeader.d.ts.map +1 -0
  17. package/build/types/table/TableRow.d.ts +17 -0
  18. package/build/types/table/TableRow.d.ts.map +1 -0
  19. package/build/types/table/TableStatusText.d.ts +9 -0
  20. package/build/types/table/TableStatusText.d.ts.map +1 -0
  21. package/build/types/table/index.d.ts +6 -0
  22. package/build/types/table/index.d.ts.map +1 -0
  23. package/build/types/test-utils/index.d.ts +10 -0
  24. package/build/types/test-utils/index.d.ts.map +1 -1
  25. package/package.json +3 -3
  26. package/src/avatarView/AvatarView.story.tsx +1 -1
  27. package/src/avatarWrapper/AvatarWrapper.story.tsx +1 -1
  28. package/src/i18n/en.json +5 -0
  29. package/src/main.css +292 -0
  30. package/src/main.less +1 -0
  31. package/src/table/Table.css +292 -0
  32. package/src/table/Table.less +347 -0
  33. package/src/table/Table.messages.ts +24 -0
  34. package/src/table/Table.spec.tsx +82 -0
  35. package/src/table/Table.story.tsx +359 -0
  36. package/src/table/Table.tsx +166 -0
  37. package/src/table/TableCell.spec.tsx +298 -0
  38. package/src/table/TableCell.tsx +170 -0
  39. package/src/table/TableHeader.spec.tsx +50 -0
  40. package/src/table/TableHeader.tsx +75 -0
  41. package/src/table/TableRow.spec.tsx +112 -0
  42. package/src/table/TableRow.tsx +70 -0
  43. package/src/table/TableStatusText.spec.tsx +53 -0
  44. package/src/table/TableStatusText.tsx +36 -0
  45. package/src/table/index.ts +11 -0
@@ -35,6 +35,11 @@
35
35
  "neptune.Summary.statusDone": "Item done",
36
36
  "neptune.Summary.statusNotDone": "Item to do",
37
37
  "neptune.Summary.statusPending": "Item pending",
38
+ "neptune.Table.actionHeader": "Action",
39
+ "neptune.Table.emptyData": "No results found",
40
+ "neptune.Table.loaded": "Table data has loaded",
41
+ "neptune.Table.loading": "Table data is loading",
42
+ "neptune.Table.refreshPage": "Refresh page",
38
43
  "neptune.Upload.csButtonText": "Upload another file?",
39
44
  "neptune.Upload.csFailureText": "Upload failed. Please, try again",
40
45
  "neptune.Upload.csSuccessText": "Upload complete!",
@@ -37,6 +37,11 @@ var en = {
37
37
  "neptune.Summary.statusDone": "Item done",
38
38
  "neptune.Summary.statusNotDone": "Item to do",
39
39
  "neptune.Summary.statusPending": "Item pending",
40
+ "neptune.Table.actionHeader": "Action",
41
+ "neptune.Table.emptyData": "No results found",
42
+ "neptune.Table.loaded": "Table data has loaded",
43
+ "neptune.Table.loading": "Table data is loading",
44
+ "neptune.Table.refreshPage": "Refresh page",
40
45
  "neptune.Upload.csButtonText": "Upload another file?",
41
46
  "neptune.Upload.csFailureText": "Upload failed. Please, try again",
42
47
  "neptune.Upload.csSuccessText": "Upload complete!",
@@ -1 +1 @@
1
- {"version":3,"file":"en.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"en.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -35,6 +35,11 @@ var en = {
35
35
  "neptune.Summary.statusDone": "Item done",
36
36
  "neptune.Summary.statusNotDone": "Item to do",
37
37
  "neptune.Summary.statusPending": "Item pending",
38
+ "neptune.Table.actionHeader": "Action",
39
+ "neptune.Table.emptyData": "No results found",
40
+ "neptune.Table.loaded": "Table data has loaded",
41
+ "neptune.Table.loading": "Table data is loading",
42
+ "neptune.Table.refreshPage": "Refresh page",
38
43
  "neptune.Upload.csButtonText": "Upload another file?",
39
44
  "neptune.Upload.csFailureText": "Upload failed. Please, try again",
40
45
  "neptune.Upload.csSuccessText": "Upload complete!",
@@ -1 +1 @@
1
- {"version":3,"file":"en.json.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"en.json.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
package/build/main.css CHANGED
@@ -5121,6 +5121,298 @@ html:not([dir="rtl"]) .np-navigation-option {
5121
5121
  padding: 0 var(--size-24);
5122
5122
  }
5123
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-text-secondary,
5264
+ .np-table-cell .np-table-text-secondary {
5265
+ color: #768e9c;
5266
+ color: var(--color-content-tertiary);
5267
+ font-size: 0.75rem;
5268
+ font-size: var(--font-size-12);
5269
+ font-style: normal;
5270
+ font-weight: 400;
5271
+ font-weight: var(--font-weight-regular);
5272
+ line-height: 1.125rem;
5273
+ line-height: var(--line-height-18);
5274
+ }
5275
+ .np-table-header.np-table-header--right > .np-text-body-default,
5276
+ .np-table-cell.np-table-cell--right > .np-text-body-default {
5277
+ text-align: right;
5278
+ }
5279
+ .np-table-header.np-table-header--right + .np-table-header:not(.np-table-header--right),
5280
+ .np-table-cell.np-table-cell--right + .np-table-cell:not(.np-table-cell--right) {
5281
+ padding-left: calc(8px + 12px);
5282
+ padding-left: calc(var(--size-8) + var(--size-12));
5283
+ }
5284
+ .np-table-header.np-table-header--right .np-table-header-content,
5285
+ .np-table-cell.np-table-cell--right .np-table-content {
5286
+ justify-content: end;
5287
+ }
5288
+ .np-table-header-content,
5289
+ .np-table-content {
5290
+ display: flex;
5291
+ align-items: center;
5292
+ justify-content: start;
5293
+ }
5294
+ .np-table-header {
5295
+ min-width: 160px;
5296
+ padding-right: 8px;
5297
+ padding-right: var(--size-8);
5298
+ padding-bottom: 8px;
5299
+ padding-bottom: var(--size-8);
5300
+ padding-left: 8px;
5301
+ padding-left: var(--size-8);
5302
+ background-color: rgba(134,167,189,0.10196);
5303
+ background-color: var(--color-background-neutral);
5304
+ color: var(--color-interactive-primary);
5305
+ }
5306
+ .np-table-header-content {
5307
+ padding-top: 5px;
5308
+ padding-bottom: 5px;
5309
+ white-space: nowrap;
5310
+ line-height: 1.375rem;
5311
+ line-height: var(--line-height-22);
5312
+ letter-spacing: 0.0125em;
5313
+ letter-spacing: var(--letter-spacing-sm);
5314
+ }
5315
+ .np-table-header--error {
5316
+ color: var(--color-sentiment-negative);
5317
+ }
5318
+ .np-table-header--action {
5319
+ min-width: 0;
5320
+ padding: 0;
5321
+ }
5322
+ .np-table-cell {
5323
+ padding: 16px 8px;
5324
+ padding: var(--size-16) var(--size-8);
5325
+ position: relative;
5326
+ }
5327
+ .np-table-cell--cosmetic {
5328
+ padding: 0;
5329
+ }
5330
+ .np-table-cell--primary {
5331
+ min-width: 200px;
5332
+ }
5333
+ .np-table-cell--currency .np-text-body-default {
5334
+ white-space: nowrap;
5335
+ }
5336
+ .np-table-cell .tw-chevron {
5337
+ margin-left: 8px;
5338
+ margin-left: var(--size-8);
5339
+ }
5340
+ .np-table-cell-separator {
5341
+ margin-top: 4px;
5342
+ margin-top: var(--size-4);
5343
+ margin-bottom: 4px;
5344
+ margin-bottom: var(--size-4);
5345
+ height: 1px;
5346
+ background-color: rgba(134,167,189,0.10196);
5347
+ background-color: var(--color-background-neutral);
5348
+ padding: 0;
5349
+ }
5350
+ .np-table-cell .np-text-body-default {
5351
+ line-height: 1.375rem;
5352
+ line-height: var(--line-height-22);
5353
+ letter-spacing: 0.01em;
5354
+ letter-spacing: var(--letter-spacing-xs);
5355
+ }
5356
+ .np-table-cell .np-text-body-default-bold {
5357
+ display: flex;
5358
+ align-items: center;
5359
+ color: #37517e;
5360
+ color: var(--color-content-primary);
5361
+ white-space: nowrap;
5362
+ }
5363
+ .np-table-cell .np-table-content--success {
5364
+ color: var(--color-sentiment-positive);
5365
+ }
5366
+ .np-table-cell .np-table-content--error {
5367
+ color: var(--color-sentiment-negative);
5368
+ }
5369
+ .np-table-cell .tw-loader {
5370
+ margin: 150px auto;
5371
+ }
5372
+ @media (max-width: 320px) {
5373
+ .np-table-cell .tw-loader {
5374
+ margin-top: 70px;
5375
+ margin-bottom: 70px;
5376
+ }
5377
+ }
5378
+ .np-table-content {
5379
+ gap: 12px;
5380
+ gap: var(--size-12);
5381
+ }
5382
+ .np-table-content--success,
5383
+ .np-table-content--error {
5384
+ gap: 4px;
5385
+ gap: var(--size-4);
5386
+ }
5387
+ .np-table-content--success .np-table-content-text,
5388
+ .np-table-content--error .np-table-content-text {
5389
+ line-height: 155%;
5390
+ }
5391
+ .np-table-content-media {
5392
+ flex-shrink: 0;
5393
+ }
5394
+ .np-table-content-body {
5395
+ display: flex;
5396
+ flex-direction: column;
5397
+ font-size: 0.75rem;
5398
+ font-size: var(--font-size-12);
5399
+ color: #768e9c;
5400
+ color: var(--color-content-tertiary);
5401
+ }
5402
+ .np-table-content--reversed {
5403
+ flex-direction: row-reverse;
5404
+ }
5405
+ .np-table-content--reversed .np-table-content-body {
5406
+ align-items: end;
5407
+ }
5408
+ .np-table-empty-data {
5409
+ display: flex;
5410
+ align-items: center;
5411
+ }
5412
+ .np-table-empty-data .status-circle {
5413
+ margin-right: 12px;
5414
+ margin-right: var(--size-12);
5415
+ }
5124
5416
  .np-tile {
5125
5417
  min-width: 120px;
5126
5418
  border-radius: 10px;
@@ -5121,6 +5121,298 @@ html:not([dir="rtl"]) .np-navigation-option {
5121
5121
  padding: 0 var(--size-24);
5122
5122
  }
5123
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-text-secondary,
5264
+ .np-table-cell .np-table-text-secondary {
5265
+ color: #768e9c;
5266
+ color: var(--color-content-tertiary);
5267
+ font-size: 0.75rem;
5268
+ font-size: var(--font-size-12);
5269
+ font-style: normal;
5270
+ font-weight: 400;
5271
+ font-weight: var(--font-weight-regular);
5272
+ line-height: 1.125rem;
5273
+ line-height: var(--line-height-18);
5274
+ }
5275
+ .np-table-header.np-table-header--right > .np-text-body-default,
5276
+ .np-table-cell.np-table-cell--right > .np-text-body-default {
5277
+ text-align: right;
5278
+ }
5279
+ .np-table-header.np-table-header--right + .np-table-header:not(.np-table-header--right),
5280
+ .np-table-cell.np-table-cell--right + .np-table-cell:not(.np-table-cell--right) {
5281
+ padding-left: calc(8px + 12px);
5282
+ padding-left: calc(var(--size-8) + var(--size-12));
5283
+ }
5284
+ .np-table-header.np-table-header--right .np-table-header-content,
5285
+ .np-table-cell.np-table-cell--right .np-table-content {
5286
+ justify-content: end;
5287
+ }
5288
+ .np-table-header-content,
5289
+ .np-table-content {
5290
+ display: flex;
5291
+ align-items: center;
5292
+ justify-content: start;
5293
+ }
5294
+ .np-table-header {
5295
+ min-width: 160px;
5296
+ padding-right: 8px;
5297
+ padding-right: var(--size-8);
5298
+ padding-bottom: 8px;
5299
+ padding-bottom: var(--size-8);
5300
+ padding-left: 8px;
5301
+ padding-left: var(--size-8);
5302
+ background-color: rgba(134,167,189,0.10196);
5303
+ background-color: var(--color-background-neutral);
5304
+ color: var(--color-interactive-primary);
5305
+ }
5306
+ .np-table-header-content {
5307
+ padding-top: 5px;
5308
+ padding-bottom: 5px;
5309
+ white-space: nowrap;
5310
+ line-height: 1.375rem;
5311
+ line-height: var(--line-height-22);
5312
+ letter-spacing: 0.0125em;
5313
+ letter-spacing: var(--letter-spacing-sm);
5314
+ }
5315
+ .np-table-header--error {
5316
+ color: var(--color-sentiment-negative);
5317
+ }
5318
+ .np-table-header--action {
5319
+ min-width: 0;
5320
+ padding: 0;
5321
+ }
5322
+ .np-table-cell {
5323
+ padding: 16px 8px;
5324
+ padding: var(--size-16) var(--size-8);
5325
+ position: relative;
5326
+ }
5327
+ .np-table-cell--cosmetic {
5328
+ padding: 0;
5329
+ }
5330
+ .np-table-cell--primary {
5331
+ min-width: 200px;
5332
+ }
5333
+ .np-table-cell--currency .np-text-body-default {
5334
+ white-space: nowrap;
5335
+ }
5336
+ .np-table-cell .tw-chevron {
5337
+ margin-left: 8px;
5338
+ margin-left: var(--size-8);
5339
+ }
5340
+ .np-table-cell-separator {
5341
+ margin-top: 4px;
5342
+ margin-top: var(--size-4);
5343
+ margin-bottom: 4px;
5344
+ margin-bottom: var(--size-4);
5345
+ height: 1px;
5346
+ background-color: rgba(134,167,189,0.10196);
5347
+ background-color: var(--color-background-neutral);
5348
+ padding: 0;
5349
+ }
5350
+ .np-table-cell .np-text-body-default {
5351
+ line-height: 1.375rem;
5352
+ line-height: var(--line-height-22);
5353
+ letter-spacing: 0.01em;
5354
+ letter-spacing: var(--letter-spacing-xs);
5355
+ }
5356
+ .np-table-cell .np-text-body-default-bold {
5357
+ display: flex;
5358
+ align-items: center;
5359
+ color: #37517e;
5360
+ color: var(--color-content-primary);
5361
+ white-space: nowrap;
5362
+ }
5363
+ .np-table-cell .np-table-content--success {
5364
+ color: var(--color-sentiment-positive);
5365
+ }
5366
+ .np-table-cell .np-table-content--error {
5367
+ color: var(--color-sentiment-negative);
5368
+ }
5369
+ .np-table-cell .tw-loader {
5370
+ margin: 150px auto;
5371
+ }
5372
+ @media (max-width: 320px) {
5373
+ .np-table-cell .tw-loader {
5374
+ margin-top: 70px;
5375
+ margin-bottom: 70px;
5376
+ }
5377
+ }
5378
+ .np-table-content {
5379
+ gap: 12px;
5380
+ gap: var(--size-12);
5381
+ }
5382
+ .np-table-content--success,
5383
+ .np-table-content--error {
5384
+ gap: 4px;
5385
+ gap: var(--size-4);
5386
+ }
5387
+ .np-table-content--success .np-table-content-text,
5388
+ .np-table-content--error .np-table-content-text {
5389
+ line-height: 155%;
5390
+ }
5391
+ .np-table-content-media {
5392
+ flex-shrink: 0;
5393
+ }
5394
+ .np-table-content-body {
5395
+ display: flex;
5396
+ flex-direction: column;
5397
+ font-size: 0.75rem;
5398
+ font-size: var(--font-size-12);
5399
+ color: #768e9c;
5400
+ color: var(--color-content-tertiary);
5401
+ }
5402
+ .np-table-content--reversed {
5403
+ flex-direction: row-reverse;
5404
+ }
5405
+ .np-table-content--reversed .np-table-content-body {
5406
+ align-items: end;
5407
+ }
5408
+ .np-table-empty-data {
5409
+ display: flex;
5410
+ align-items: center;
5411
+ }
5412
+ .np-table-empty-data .status-circle {
5413
+ margin-right: 12px;
5414
+ margin-right: var(--size-12);
5415
+ }
5124
5416
  .np-tile {
5125
5417
  min-width: 120px;
5126
5418
  border-radius: 10px;