@transferwise/components 46.41.0 → 46.42.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.
package/build/main.css CHANGED
@@ -5402,6 +5402,9 @@ html:not([dir="rtl"]) .np-navigation-option {
5402
5402
  border-color: #c9cbce !important;
5403
5403
  border-color: var(--color-interactive-secondary) !important;
5404
5404
  }
5405
+ .np-upload-button-container.droppable-dropping:before {
5406
+ z-index: 2;
5407
+ }
5405
5408
  .np-upload-button-container input[type="file"] {
5406
5409
  opacity: 0;
5407
5410
  z-index: -1;
@@ -5412,6 +5415,7 @@ html:not([dir="rtl"]) .np-navigation-option {
5412
5415
  }
5413
5416
  .np-upload-button {
5414
5417
  width: 100%;
5418
+ border-top: 1px solid transparent;
5415
5419
  padding: 16px;
5416
5420
  padding: var(--padding-small);
5417
5421
  border-radius: 0;
@@ -5479,8 +5483,25 @@ label.np-upload-button:not(.disabled):active {
5479
5483
  color: var(--color-sentiment-negative) !important;
5480
5484
  }
5481
5485
  .np-theme-personal .np-upload-input-errors {
5486
+ list-style: none;
5482
5487
  padding-left: 0;
5483
- list-style-position: inside;
5488
+ }
5489
+ .np-theme-personal .np-upload-input-errors li {
5490
+ position: relative;
5491
+ padding-left: 16px;
5492
+ padding-left: var(--size-16);
5493
+ }
5494
+ @media (max-width: 320px) {
5495
+ .np-theme-personal .np-upload-input-errors li {
5496
+ padding-left: 32px;
5497
+ padding-left: var(--size-32);
5498
+ }
5499
+ }
5500
+ .np-theme-personal .np-upload-input-errors li:before {
5501
+ content: '•';
5502
+ position: absolute;
5503
+ display: block;
5504
+ left: 0;
5484
5505
  }
5485
5506
  .np-theme-personal .np-upload-input .status-circle {
5486
5507
  width: 24px;
@@ -5499,30 +5520,49 @@ label.np-upload-button:not(.disabled):active {
5499
5520
  .np-upload-item {
5500
5521
  border: 1px solid #c9cbce;
5501
5522
  border: 1px solid var(--color-interactive-secondary);
5523
+ position: relative;
5502
5524
  }
5503
- .np-upload-item:first-child ~ div:before {
5525
+ .np-upload-item:first-child ~ div:not(.np-upload-item__link):before,
5526
+ .np-upload-item:not(:first-child).np-upload-item__link .np-upload-item--link:before,
5527
+ .np-upload-item.np-upload-item__link:hover .np-upload-item--link:after {
5504
5528
  display: block;
5505
- position: relative;
5529
+ position: absolute;
5506
5530
  height: 1px;
5507
5531
  background-color: rgba(0,0,0,0.10196);
5508
5532
  background-color: var(--color-border-neutral);
5509
5533
  content: " ";
5510
- margin: 0 16px;
5511
- margin: 0 var(--size-16);
5534
+ left: 16px;
5535
+ left: var(--size-16);
5536
+ width: calc(100% - 2 * 16px);
5537
+ width: calc(100% - 2 * var(--size-16));
5538
+ }
5539
+ .np-upload-item:first-child ~ div:not(.np-upload-item__link):before,
5540
+ .np-upload-item:not(:first-child).np-upload-item__link .np-upload-item--link:before {
5541
+ top: 0;
5542
+ }
5543
+ .np-upload-item.np-upload-item__link:hover .np-upload-item--link:after {
5544
+ bottom: -1px;
5512
5545
  }
5513
5546
  .np-upload-item:first-child ~ div {
5514
- border-top: 0;
5547
+ border-top: 1px;
5548
+ }
5549
+ .np-upload-item:not(:first-child) .np-upload-item--link:hover {
5550
+ border-top-color: rgba(0,0,0,0.10196);
5551
+ border-top-color: var(--color-border-neutral);
5515
5552
  }
5516
5553
  .np-upload-item:not(:last-child) {
5517
5554
  border-bottom: 0;
5518
5555
  }
5519
- .np-upload-item.np-upload-item__link:hover:before,
5520
- .np-upload-button-container:hover:before {
5521
- margin: 0 !important;
5556
+ .np-upload-item.np-upload-item__link:hover + .np-upload-item:before,
5557
+ .np-upload-item.np-upload-item__link:hover + .np-upload-button-container:before,
5558
+ .np-upload-item.np-upload-item__link:hover + .np-upload-item .np-upload-item--link:before,
5559
+ .np-upload-item.np-upload-item__link:hover + .np-upload-button-container .np-upload-item--link:before {
5560
+ display: none;
5522
5561
  }
5523
- .np-upload-item.np-upload-item__link:hover + div:before,
5524
- .np-upload-button-container:hover + div:before {
5525
- margin: 0 !important;
5562
+ .np-upload-button-container:hover:before,
5563
+ .np-upload-button-container.droppable-dropping:before {
5564
+ left: 0 !important;
5565
+ width: 100% !important;
5526
5566
  }
5527
5567
  .np-upload-button-container:has(:focus-visible) {
5528
5568
  outline: var(--ring-outline-color) solid var(--ring-outline-width);
@@ -5539,17 +5579,29 @@ label.np-upload-button:not(.disabled):active {
5539
5579
  flex: 1;
5540
5580
  -webkit-text-decoration: none;
5541
5581
  text-decoration: none;
5582
+ border-top: 1px solid transparent;
5542
5583
  border-radius: inherit;
5543
5584
  }
5544
5585
  .np-upload-item__link a:focus-visible {
5545
5586
  outline-offset: -2px;
5546
5587
  }
5588
+ .np-upload-item__link a:hover:before {
5589
+ display: none !important;
5590
+ }
5591
+ .np-upload-item__link a:hover:after {
5592
+ left: 0 !important;
5593
+ width: 100% !important;
5594
+ }
5547
5595
  .np-upload-item__link a:hover,
5548
5596
  .np-upload-item__link a:active {
5549
5597
  -webkit-text-decoration: none;
5550
5598
  text-decoration: none;
5599
+ }
5600
+ .np-upload-item__link a:hover .np-upload-button,
5601
+ .np-upload-item__link a:active .np-upload-button {
5551
5602
  background-color: rgba(134,167,189,0.10196);
5552
5603
  background-color: var(--color-background-neutral);
5604
+ border-radius: inherit;
5553
5605
  }
5554
5606
  .np-upload-item__body {
5555
5607
  display: flex;
@@ -5574,6 +5626,7 @@ label.np-upload-button:not(.disabled):active {
5574
5626
  outline-offset: 0 !important;
5575
5627
  background-color: rgba(134,167,189,0.10196);
5576
5628
  background-color: var(--color-background-neutral);
5629
+ border: none;
5577
5630
  color: var(--color-interactive-primary);
5578
5631
  right: 16px;
5579
5632
  right: var(--size-16);
@@ -5402,6 +5402,9 @@ html:not([dir="rtl"]) .np-navigation-option {
5402
5402
  border-color: #c9cbce !important;
5403
5403
  border-color: var(--color-interactive-secondary) !important;
5404
5404
  }
5405
+ .np-upload-button-container.droppable-dropping:before {
5406
+ z-index: 2;
5407
+ }
5405
5408
  .np-upload-button-container input[type="file"] {
5406
5409
  opacity: 0;
5407
5410
  z-index: -1;
@@ -5412,6 +5415,7 @@ html:not([dir="rtl"]) .np-navigation-option {
5412
5415
  }
5413
5416
  .np-upload-button {
5414
5417
  width: 100%;
5418
+ border-top: 1px solid transparent;
5415
5419
  padding: 16px;
5416
5420
  padding: var(--padding-small);
5417
5421
  border-radius: 0;
@@ -5479,8 +5483,25 @@ label.np-upload-button:not(.disabled):active {
5479
5483
  color: var(--color-sentiment-negative) !important;
5480
5484
  }
5481
5485
  .np-theme-personal .np-upload-input-errors {
5486
+ list-style: none;
5482
5487
  padding-left: 0;
5483
- list-style-position: inside;
5488
+ }
5489
+ .np-theme-personal .np-upload-input-errors li {
5490
+ position: relative;
5491
+ padding-left: 16px;
5492
+ padding-left: var(--size-16);
5493
+ }
5494
+ @media (max-width: 320px) {
5495
+ .np-theme-personal .np-upload-input-errors li {
5496
+ padding-left: 32px;
5497
+ padding-left: var(--size-32);
5498
+ }
5499
+ }
5500
+ .np-theme-personal .np-upload-input-errors li:before {
5501
+ content: '•';
5502
+ position: absolute;
5503
+ display: block;
5504
+ left: 0;
5484
5505
  }
5485
5506
  .np-theme-personal .np-upload-input .status-circle {
5486
5507
  width: 24px;
@@ -5499,30 +5520,49 @@ label.np-upload-button:not(.disabled):active {
5499
5520
  .np-upload-item {
5500
5521
  border: 1px solid #c9cbce;
5501
5522
  border: 1px solid var(--color-interactive-secondary);
5523
+ position: relative;
5502
5524
  }
5503
- .np-upload-item:first-child ~ div:before {
5525
+ .np-upload-item:first-child ~ div:not(.np-upload-item__link):before,
5526
+ .np-upload-item:not(:first-child).np-upload-item__link .np-upload-item--link:before,
5527
+ .np-upload-item.np-upload-item__link:hover .np-upload-item--link:after {
5504
5528
  display: block;
5505
- position: relative;
5529
+ position: absolute;
5506
5530
  height: 1px;
5507
5531
  background-color: rgba(0,0,0,0.10196);
5508
5532
  background-color: var(--color-border-neutral);
5509
5533
  content: " ";
5510
- margin: 0 16px;
5511
- margin: 0 var(--size-16);
5534
+ left: 16px;
5535
+ left: var(--size-16);
5536
+ width: calc(100% - 2 * 16px);
5537
+ width: calc(100% - 2 * var(--size-16));
5538
+ }
5539
+ .np-upload-item:first-child ~ div:not(.np-upload-item__link):before,
5540
+ .np-upload-item:not(:first-child).np-upload-item__link .np-upload-item--link:before {
5541
+ top: 0;
5542
+ }
5543
+ .np-upload-item.np-upload-item__link:hover .np-upload-item--link:after {
5544
+ bottom: -1px;
5512
5545
  }
5513
5546
  .np-upload-item:first-child ~ div {
5514
- border-top: 0;
5547
+ border-top: 1px;
5548
+ }
5549
+ .np-upload-item:not(:first-child) .np-upload-item--link:hover {
5550
+ border-top-color: rgba(0,0,0,0.10196);
5551
+ border-top-color: var(--color-border-neutral);
5515
5552
  }
5516
5553
  .np-upload-item:not(:last-child) {
5517
5554
  border-bottom: 0;
5518
5555
  }
5519
- .np-upload-item.np-upload-item__link:hover:before,
5520
- .np-upload-button-container:hover:before {
5521
- margin: 0 !important;
5556
+ .np-upload-item.np-upload-item__link:hover + .np-upload-item:before,
5557
+ .np-upload-item.np-upload-item__link:hover + .np-upload-button-container:before,
5558
+ .np-upload-item.np-upload-item__link:hover + .np-upload-item .np-upload-item--link:before,
5559
+ .np-upload-item.np-upload-item__link:hover + .np-upload-button-container .np-upload-item--link:before {
5560
+ display: none;
5522
5561
  }
5523
- .np-upload-item.np-upload-item__link:hover + div:before,
5524
- .np-upload-button-container:hover + div:before {
5525
- margin: 0 !important;
5562
+ .np-upload-button-container:hover:before,
5563
+ .np-upload-button-container.droppable-dropping:before {
5564
+ left: 0 !important;
5565
+ width: 100% !important;
5526
5566
  }
5527
5567
  .np-upload-button-container:has(:focus-visible) {
5528
5568
  outline: var(--ring-outline-color) solid var(--ring-outline-width);
@@ -5539,17 +5579,29 @@ label.np-upload-button:not(.disabled):active {
5539
5579
  flex: 1;
5540
5580
  -webkit-text-decoration: none;
5541
5581
  text-decoration: none;
5582
+ border-top: 1px solid transparent;
5542
5583
  border-radius: inherit;
5543
5584
  }
5544
5585
  .np-upload-item__link a:focus-visible {
5545
5586
  outline-offset: -2px;
5546
5587
  }
5588
+ .np-upload-item__link a:hover:before {
5589
+ display: none !important;
5590
+ }
5591
+ .np-upload-item__link a:hover:after {
5592
+ left: 0 !important;
5593
+ width: 100% !important;
5594
+ }
5547
5595
  .np-upload-item__link a:hover,
5548
5596
  .np-upload-item__link a:active {
5549
5597
  -webkit-text-decoration: none;
5550
5598
  text-decoration: none;
5599
+ }
5600
+ .np-upload-item__link a:hover .np-upload-button,
5601
+ .np-upload-item__link a:active .np-upload-button {
5551
5602
  background-color: rgba(134,167,189,0.10196);
5552
5603
  background-color: var(--color-background-neutral);
5604
+ border-radius: inherit;
5553
5605
  }
5554
5606
  .np-upload-item__body {
5555
5607
  display: flex;
@@ -5574,6 +5626,7 @@ label.np-upload-button:not(.disabled):active {
5574
5626
  outline-offset: 0 !important;
5575
5627
  background-color: rgba(134,167,189,0.10196);
5576
5628
  background-color: var(--color-background-neutral);
5629
+ border: none;
5577
5630
  color: var(--color-interactive-primary);
5578
5631
  right: 16px;
5579
5632
  right: var(--size-16);
@@ -50,8 +50,25 @@
50
50
  color: var(--color-sentiment-negative) !important;
51
51
  }
52
52
  .np-theme-personal .np-upload-input-errors {
53
+ list-style: none;
53
54
  padding-left: 0;
54
- list-style-position: inside;
55
+ }
56
+ .np-theme-personal .np-upload-input-errors li {
57
+ position: relative;
58
+ padding-left: 16px;
59
+ padding-left: var(--size-16);
60
+ }
61
+ @media (max-width: 320px) {
62
+ .np-theme-personal .np-upload-input-errors li {
63
+ padding-left: 32px;
64
+ padding-left: var(--size-32);
65
+ }
66
+ }
67
+ .np-theme-personal .np-upload-input-errors li:before {
68
+ content: '•';
69
+ position: absolute;
70
+ display: block;
71
+ left: 0;
55
72
  }
56
73
  .np-theme-personal .np-upload-input .status-circle {
57
74
  width: 24px;
@@ -8,6 +8,9 @@
8
8
  border-color: #c9cbce !important;
9
9
  border-color: var(--color-interactive-secondary) !important;
10
10
  }
11
+ .np-upload-button-container.droppable-dropping:before {
12
+ z-index: 2;
13
+ }
11
14
  .np-upload-button-container input[type="file"] {
12
15
  opacity: 0;
13
16
  z-index: -1;
@@ -18,6 +21,7 @@
18
21
  }
19
22
  .np-upload-button {
20
23
  width: 100%;
24
+ border-top: 1px solid transparent;
21
25
  padding: 16px;
22
26
  padding: var(--padding-small);
23
27
  border-radius: 0;
@@ -1,30 +1,49 @@
1
1
  .np-upload-item {
2
2
  border: 1px solid #c9cbce;
3
3
  border: 1px solid var(--color-interactive-secondary);
4
+ position: relative;
4
5
  }
5
- .np-upload-item:first-child ~ div:before {
6
+ .np-upload-item:first-child ~ div:not(.np-upload-item__link):before,
7
+ .np-upload-item:not(:first-child).np-upload-item__link .np-upload-item--link:before,
8
+ .np-upload-item.np-upload-item__link:hover .np-upload-item--link:after {
6
9
  display: block;
7
- position: relative;
10
+ position: absolute;
8
11
  height: 1px;
9
12
  background-color: rgba(0,0,0,0.10196);
10
13
  background-color: var(--color-border-neutral);
11
14
  content: " ";
12
- margin: 0 16px;
13
- margin: 0 var(--size-16);
15
+ left: 16px;
16
+ left: var(--size-16);
17
+ width: calc(100% - 2 * 16px);
18
+ width: calc(100% - 2 * var(--size-16));
19
+ }
20
+ .np-upload-item:first-child ~ div:not(.np-upload-item__link):before,
21
+ .np-upload-item:not(:first-child).np-upload-item__link .np-upload-item--link:before {
22
+ top: 0;
23
+ }
24
+ .np-upload-item.np-upload-item__link:hover .np-upload-item--link:after {
25
+ bottom: -1px;
14
26
  }
15
27
  .np-upload-item:first-child ~ div {
16
- border-top: 0;
28
+ border-top: 1px;
29
+ }
30
+ .np-upload-item:not(:first-child) .np-upload-item--link:hover {
31
+ border-top-color: rgba(0,0,0,0.10196);
32
+ border-top-color: var(--color-border-neutral);
17
33
  }
18
34
  .np-upload-item:not(:last-child) {
19
35
  border-bottom: 0;
20
36
  }
21
- .np-upload-item.np-upload-item__link:hover:before,
22
- .np-upload-button-container:hover:before {
23
- margin: 0 !important;
37
+ .np-upload-item.np-upload-item__link:hover + .np-upload-item:before,
38
+ .np-upload-item.np-upload-item__link:hover + .np-upload-button-container:before,
39
+ .np-upload-item.np-upload-item__link:hover + .np-upload-item .np-upload-item--link:before,
40
+ .np-upload-item.np-upload-item__link:hover + .np-upload-button-container .np-upload-item--link:before {
41
+ display: none;
24
42
  }
25
- .np-upload-item.np-upload-item__link:hover + div:before,
26
- .np-upload-button-container:hover + div:before {
27
- margin: 0 !important;
43
+ .np-upload-button-container:hover:before,
44
+ .np-upload-button-container.droppable-dropping:before {
45
+ left: 0 !important;
46
+ width: 100% !important;
28
47
  }
29
48
  .np-upload-button-container:has(:focus-visible) {
30
49
  outline: var(--ring-outline-color) solid var(--ring-outline-width);
@@ -41,17 +60,29 @@
41
60
  flex: 1;
42
61
  -webkit-text-decoration: none;
43
62
  text-decoration: none;
63
+ border-top: 1px solid transparent;
44
64
  border-radius: inherit;
45
65
  }
46
66
  .np-upload-item__link a:focus-visible {
47
67
  outline-offset: -2px;
48
68
  }
69
+ .np-upload-item__link a:hover:before {
70
+ display: none !important;
71
+ }
72
+ .np-upload-item__link a:hover:after {
73
+ left: 0 !important;
74
+ width: 100% !important;
75
+ }
49
76
  .np-upload-item__link a:hover,
50
77
  .np-upload-item__link a:active {
51
78
  -webkit-text-decoration: none;
52
79
  text-decoration: none;
80
+ }
81
+ .np-upload-item__link a:hover .np-upload-button,
82
+ .np-upload-item__link a:active .np-upload-button {
53
83
  background-color: rgba(134,167,189,0.10196);
54
84
  background-color: var(--color-background-neutral);
85
+ border-radius: inherit;
55
86
  }
56
87
  .np-upload-item__body {
57
88
  display: flex;
@@ -76,6 +107,7 @@
76
107
  outline-offset: 0 !important;
77
108
  background-color: rgba(134,167,189,0.10196);
78
109
  background-color: var(--color-background-neutral);
110
+ border: none;
79
111
  color: var(--color-interactive-primary);
80
112
  right: 16px;
81
113
  right: var(--size-16);
@@ -1,4 +1,4 @@
1
- import React, { ReactNode } from 'react';
1
+ import { ReactNode } from 'react';
2
2
  import { Sentiment } from '../common';
3
3
  export interface InlineAlertProps {
4
4
  id?: string;
@@ -6,5 +6,5 @@ export interface InlineAlertProps {
6
6
  className?: string;
7
7
  children: ReactNode;
8
8
  }
9
- export default function InlineAlert({ id, type, className, children, }: InlineAlertProps): React.JSX.Element;
9
+ export default function InlineAlert({ id, type, className, children, }: InlineAlertProps): import("react").JSX.Element;
10
10
  //# sourceMappingURL=InlineAlert.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"InlineAlert.d.ts","sourceRoot":"","sources":["../../../src/inlineAlert/InlineAlert.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEzC,OAAO,EAAE,SAAS,EAAQ,MAAM,WAAW,CAAC;AAG5C,MAAM,WAAW,gBAAgB;IAC/B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,IAAI,CAAC,EAAE,GAAG,SAAS,EAAE,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,EAClC,EAAE,EACF,IAAgB,EAChB,SAAS,EACT,QAAQ,GACT,EAAE,gBAAgB,qBAmBlB"}
1
+ {"version":3,"file":"InlineAlert.d.ts","sourceRoot":"","sources":["../../../src/inlineAlert/InlineAlert.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,OAAO,EAAE,SAAS,EAAQ,MAAM,WAAW,CAAC;AAG5C,MAAM,WAAW,gBAAgB;IAC/B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,IAAI,CAAC,EAAE,GAAG,SAAS,EAAE,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,EAClC,EAAE,EACF,IAAgB,EAChB,SAAS,EACT,QAAQ,GACT,EAAE,gBAAgB,+BAiBlB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@transferwise/components",
3
- "version": "46.41.0",
3
+ "version": "46.42.0",
4
4
  "description": "Neptune React components",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -93,7 +93,7 @@
93
93
  "rollup": "^4.17.2",
94
94
  "storybook": "^8.1.10",
95
95
  "@transferwise/less-config": "3.1.0",
96
- "@transferwise/neptune-css": "14.11.0",
96
+ "@transferwise/neptune-css": "14.12.0",
97
97
  "@wise/components-theming": "1.3.0"
98
98
  },
99
99
  "peerDependencies": {
@@ -1,5 +1,5 @@
1
1
  import classNames from 'classnames';
2
- import React, { ReactNode } from 'react';
2
+ import { ReactNode } from 'react';
3
3
 
4
4
  import { Sentiment, Size } from '../common';
5
5
  import StatusIcon from '../statusIcon';
@@ -27,12 +27,10 @@ export default function InlineAlert({
27
27
  className,
28
28
  )}
29
29
  >
30
- <div className="d-inline-flex">
31
- {type !== Sentiment.NEUTRAL && type !== Sentiment.PENDING && (
32
- <StatusIcon sentiment={type} size={Size.SMALL} />
33
- )}
34
- <div className="np-text-body-default">{children}</div>
35
- </div>
30
+ {type !== Sentiment.NEUTRAL && type !== Sentiment.PENDING && (
31
+ <StatusIcon sentiment={type} size={Size.SMALL} />
32
+ )}
33
+ <div className="np-text-body-default">{children}</div>
36
34
  </div>
37
35
  );
38
36
  }
package/src/main.css CHANGED
@@ -5402,6 +5402,9 @@ html:not([dir="rtl"]) .np-navigation-option {
5402
5402
  border-color: #c9cbce !important;
5403
5403
  border-color: var(--color-interactive-secondary) !important;
5404
5404
  }
5405
+ .np-upload-button-container.droppable-dropping:before {
5406
+ z-index: 2;
5407
+ }
5405
5408
  .np-upload-button-container input[type="file"] {
5406
5409
  opacity: 0;
5407
5410
  z-index: -1;
@@ -5412,6 +5415,7 @@ html:not([dir="rtl"]) .np-navigation-option {
5412
5415
  }
5413
5416
  .np-upload-button {
5414
5417
  width: 100%;
5418
+ border-top: 1px solid transparent;
5415
5419
  padding: 16px;
5416
5420
  padding: var(--padding-small);
5417
5421
  border-radius: 0;
@@ -5479,8 +5483,25 @@ label.np-upload-button:not(.disabled):active {
5479
5483
  color: var(--color-sentiment-negative) !important;
5480
5484
  }
5481
5485
  .np-theme-personal .np-upload-input-errors {
5486
+ list-style: none;
5482
5487
  padding-left: 0;
5483
- list-style-position: inside;
5488
+ }
5489
+ .np-theme-personal .np-upload-input-errors li {
5490
+ position: relative;
5491
+ padding-left: 16px;
5492
+ padding-left: var(--size-16);
5493
+ }
5494
+ @media (max-width: 320px) {
5495
+ .np-theme-personal .np-upload-input-errors li {
5496
+ padding-left: 32px;
5497
+ padding-left: var(--size-32);
5498
+ }
5499
+ }
5500
+ .np-theme-personal .np-upload-input-errors li:before {
5501
+ content: '•';
5502
+ position: absolute;
5503
+ display: block;
5504
+ left: 0;
5484
5505
  }
5485
5506
  .np-theme-personal .np-upload-input .status-circle {
5486
5507
  width: 24px;
@@ -5499,30 +5520,49 @@ label.np-upload-button:not(.disabled):active {
5499
5520
  .np-upload-item {
5500
5521
  border: 1px solid #c9cbce;
5501
5522
  border: 1px solid var(--color-interactive-secondary);
5523
+ position: relative;
5502
5524
  }
5503
- .np-upload-item:first-child ~ div:before {
5525
+ .np-upload-item:first-child ~ div:not(.np-upload-item__link):before,
5526
+ .np-upload-item:not(:first-child).np-upload-item__link .np-upload-item--link:before,
5527
+ .np-upload-item.np-upload-item__link:hover .np-upload-item--link:after {
5504
5528
  display: block;
5505
- position: relative;
5529
+ position: absolute;
5506
5530
  height: 1px;
5507
5531
  background-color: rgba(0,0,0,0.10196);
5508
5532
  background-color: var(--color-border-neutral);
5509
5533
  content: " ";
5510
- margin: 0 16px;
5511
- margin: 0 var(--size-16);
5534
+ left: 16px;
5535
+ left: var(--size-16);
5536
+ width: calc(100% - 2 * 16px);
5537
+ width: calc(100% - 2 * var(--size-16));
5538
+ }
5539
+ .np-upload-item:first-child ~ div:not(.np-upload-item__link):before,
5540
+ .np-upload-item:not(:first-child).np-upload-item__link .np-upload-item--link:before {
5541
+ top: 0;
5542
+ }
5543
+ .np-upload-item.np-upload-item__link:hover .np-upload-item--link:after {
5544
+ bottom: -1px;
5512
5545
  }
5513
5546
  .np-upload-item:first-child ~ div {
5514
- border-top: 0;
5547
+ border-top: 1px;
5548
+ }
5549
+ .np-upload-item:not(:first-child) .np-upload-item--link:hover {
5550
+ border-top-color: rgba(0,0,0,0.10196);
5551
+ border-top-color: var(--color-border-neutral);
5515
5552
  }
5516
5553
  .np-upload-item:not(:last-child) {
5517
5554
  border-bottom: 0;
5518
5555
  }
5519
- .np-upload-item.np-upload-item__link:hover:before,
5520
- .np-upload-button-container:hover:before {
5521
- margin: 0 !important;
5556
+ .np-upload-item.np-upload-item__link:hover + .np-upload-item:before,
5557
+ .np-upload-item.np-upload-item__link:hover + .np-upload-button-container:before,
5558
+ .np-upload-item.np-upload-item__link:hover + .np-upload-item .np-upload-item--link:before,
5559
+ .np-upload-item.np-upload-item__link:hover + .np-upload-button-container .np-upload-item--link:before {
5560
+ display: none;
5522
5561
  }
5523
- .np-upload-item.np-upload-item__link:hover + div:before,
5524
- .np-upload-button-container:hover + div:before {
5525
- margin: 0 !important;
5562
+ .np-upload-button-container:hover:before,
5563
+ .np-upload-button-container.droppable-dropping:before {
5564
+ left: 0 !important;
5565
+ width: 100% !important;
5526
5566
  }
5527
5567
  .np-upload-button-container:has(:focus-visible) {
5528
5568
  outline: var(--ring-outline-color) solid var(--ring-outline-width);
@@ -5539,17 +5579,29 @@ label.np-upload-button:not(.disabled):active {
5539
5579
  flex: 1;
5540
5580
  -webkit-text-decoration: none;
5541
5581
  text-decoration: none;
5582
+ border-top: 1px solid transparent;
5542
5583
  border-radius: inherit;
5543
5584
  }
5544
5585
  .np-upload-item__link a:focus-visible {
5545
5586
  outline-offset: -2px;
5546
5587
  }
5588
+ .np-upload-item__link a:hover:before {
5589
+ display: none !important;
5590
+ }
5591
+ .np-upload-item__link a:hover:after {
5592
+ left: 0 !important;
5593
+ width: 100% !important;
5594
+ }
5547
5595
  .np-upload-item__link a:hover,
5548
5596
  .np-upload-item__link a:active {
5549
5597
  -webkit-text-decoration: none;
5550
5598
  text-decoration: none;
5599
+ }
5600
+ .np-upload-item__link a:hover .np-upload-button,
5601
+ .np-upload-item__link a:active .np-upload-button {
5551
5602
  background-color: rgba(134,167,189,0.10196);
5552
5603
  background-color: var(--color-background-neutral);
5604
+ border-radius: inherit;
5553
5605
  }
5554
5606
  .np-upload-item__body {
5555
5607
  display: flex;
@@ -5574,6 +5626,7 @@ label.np-upload-button:not(.disabled):active {
5574
5626
  outline-offset: 0 !important;
5575
5627
  background-color: rgba(134,167,189,0.10196);
5576
5628
  background-color: var(--color-background-neutral);
5629
+ border: none;
5577
5630
  color: var(--color-interactive-primary);
5578
5631
  right: 16px;
5579
5632
  right: var(--size-16);
@@ -50,8 +50,25 @@
50
50
  color: var(--color-sentiment-negative) !important;
51
51
  }
52
52
  .np-theme-personal .np-upload-input-errors {
53
+ list-style: none;
53
54
  padding-left: 0;
54
- list-style-position: inside;
55
+ }
56
+ .np-theme-personal .np-upload-input-errors li {
57
+ position: relative;
58
+ padding-left: 16px;
59
+ padding-left: var(--size-16);
60
+ }
61
+ @media (max-width: 320px) {
62
+ .np-theme-personal .np-upload-input-errors li {
63
+ padding-left: 32px;
64
+ padding-left: var(--size-32);
65
+ }
66
+ }
67
+ .np-theme-personal .np-upload-input-errors li:before {
68
+ content: '•';
69
+ position: absolute;
70
+ display: block;
71
+ left: 0;
55
72
  }
56
73
  .np-theme-personal .np-upload-input .status-circle {
57
74
  width: 24px;
@@ -59,8 +59,24 @@
59
59
  }
60
60
 
61
61
  &-errors {
62
+ list-style: none;
62
63
  padding-left: 0;
63
- list-style-position: inside;
64
+
65
+ li {
66
+ position: relative;
67
+ padding-left: var(--size-16);
68
+
69
+ @media (--screen-400-zoom) {
70
+ padding-left: var(--size-32);
71
+ }
72
+
73
+ &:before {
74
+ content: '•';
75
+ position: absolute;
76
+ display: block;
77
+ left: 0;
78
+ }
79
+ }
64
80
  }
65
81
 
66
82
  .status-circle {