@transferwise/components 0.0.0-experimental-3b84ee4 → 0.0.0-experimental-8a06fb3

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
@@ -1494,7 +1494,7 @@ button.np-option {
1494
1494
  background-color: rgba(134,167,189,0.10196);
1495
1495
  background-color: var(--color-background-neutral);
1496
1496
  }
1497
- .np-select-option-placeholder:hover {
1497
+ .np-select-option-placeholder:not(.disabled):hover {
1498
1498
  background-color: var(--color-background-neutral-hover);
1499
1499
  }
1500
1500
  .np-select-option-placeholder:focus,
@@ -5444,6 +5444,9 @@ html:not([dir="rtl"]) .np-navigation-option {
5444
5444
  border-color: #c9cbce !important;
5445
5445
  border-color: var(--color-interactive-secondary) !important;
5446
5446
  }
5447
+ .np-upload-button-container.droppable-dropping:before {
5448
+ z-index: 2;
5449
+ }
5447
5450
  .np-upload-button-container input[type="file"] {
5448
5451
  opacity: 0;
5449
5452
  z-index: -1;
@@ -5454,6 +5457,7 @@ html:not([dir="rtl"]) .np-navigation-option {
5454
5457
  }
5455
5458
  .np-upload-button {
5456
5459
  width: 100%;
5460
+ border-top: 1px solid transparent;
5457
5461
  padding: 16px;
5458
5462
  padding: var(--padding-small);
5459
5463
  border-radius: 0;
@@ -5521,8 +5525,25 @@ label.np-upload-button:not(.disabled):active {
5521
5525
  color: var(--color-sentiment-negative) !important;
5522
5526
  }
5523
5527
  .np-theme-personal .np-upload-input-errors {
5528
+ list-style: none;
5524
5529
  padding-left: 0;
5525
- list-style-position: inside;
5530
+ }
5531
+ .np-theme-personal .np-upload-input-errors li {
5532
+ position: relative;
5533
+ padding-left: 16px;
5534
+ padding-left: var(--size-16);
5535
+ }
5536
+ @media (max-width: 320px) {
5537
+ .np-theme-personal .np-upload-input-errors li {
5538
+ padding-left: 32px;
5539
+ padding-left: var(--size-32);
5540
+ }
5541
+ }
5542
+ .np-theme-personal .np-upload-input-errors li:before {
5543
+ content: '•';
5544
+ position: absolute;
5545
+ display: block;
5546
+ left: 0;
5526
5547
  }
5527
5548
  .np-theme-personal .np-upload-input .status-circle {
5528
5549
  width: 24px;
@@ -5541,30 +5562,49 @@ label.np-upload-button:not(.disabled):active {
5541
5562
  .np-upload-item {
5542
5563
  border: 1px solid #c9cbce;
5543
5564
  border: 1px solid var(--color-interactive-secondary);
5565
+ position: relative;
5544
5566
  }
5545
- .np-upload-item:first-child ~ div:before {
5567
+ .np-upload-item:first-child ~ div:not(.np-upload-item__link):before,
5568
+ .np-upload-item:not(:first-child).np-upload-item__link .np-upload-item--link:before,
5569
+ .np-upload-item.np-upload-item__link:hover .np-upload-item--link:after {
5546
5570
  display: block;
5547
- position: relative;
5571
+ position: absolute;
5548
5572
  height: 1px;
5549
5573
  background-color: rgba(0,0,0,0.10196);
5550
5574
  background-color: var(--color-border-neutral);
5551
5575
  content: " ";
5552
- margin: 0 16px;
5553
- margin: 0 var(--size-16);
5576
+ left: 16px;
5577
+ left: var(--size-16);
5578
+ width: calc(100% - 2 * 16px);
5579
+ width: calc(100% - 2 * var(--size-16));
5580
+ }
5581
+ .np-upload-item:first-child ~ div:not(.np-upload-item__link):before,
5582
+ .np-upload-item:not(:first-child).np-upload-item__link .np-upload-item--link:before {
5583
+ top: 0;
5584
+ }
5585
+ .np-upload-item.np-upload-item__link:hover .np-upload-item--link:after {
5586
+ bottom: -1px;
5554
5587
  }
5555
5588
  .np-upload-item:first-child ~ div {
5556
- border-top: 0;
5589
+ border-top: 1px;
5590
+ }
5591
+ .np-upload-item:not(:first-child) .np-upload-item--link:hover {
5592
+ border-top-color: rgba(0,0,0,0.10196);
5593
+ border-top-color: var(--color-border-neutral);
5557
5594
  }
5558
5595
  .np-upload-item:not(:last-child) {
5559
5596
  border-bottom: 0;
5560
5597
  }
5561
- .np-upload-item.np-upload-item__link:hover:before,
5562
- .np-upload-button-container:hover:before {
5563
- margin: 0 !important;
5598
+ .np-upload-item.np-upload-item__link:hover + .np-upload-item:before,
5599
+ .np-upload-item.np-upload-item__link:hover + .np-upload-button-container:before,
5600
+ .np-upload-item.np-upload-item__link:hover + .np-upload-item .np-upload-item--link:before,
5601
+ .np-upload-item.np-upload-item__link:hover + .np-upload-button-container .np-upload-item--link:before {
5602
+ display: none;
5564
5603
  }
5565
- .np-upload-item.np-upload-item__link:hover + div:before,
5566
- .np-upload-button-container:hover + div:before {
5567
- margin: 0 !important;
5604
+ .np-upload-button-container:hover:before,
5605
+ .np-upload-button-container.droppable-dropping:before {
5606
+ left: 0 !important;
5607
+ width: 100% !important;
5568
5608
  }
5569
5609
  .np-upload-button-container:has(:focus-visible) {
5570
5610
  outline: var(--ring-outline-color) solid var(--ring-outline-width);
@@ -5581,17 +5621,29 @@ label.np-upload-button:not(.disabled):active {
5581
5621
  flex: 1;
5582
5622
  -webkit-text-decoration: none;
5583
5623
  text-decoration: none;
5624
+ border-top: 1px solid transparent;
5584
5625
  border-radius: inherit;
5585
5626
  }
5586
5627
  .np-upload-item__link a:focus-visible {
5587
5628
  outline-offset: -2px;
5588
5629
  }
5630
+ .np-upload-item__link a:hover:before {
5631
+ display: none !important;
5632
+ }
5633
+ .np-upload-item__link a:hover:after {
5634
+ left: 0 !important;
5635
+ width: 100% !important;
5636
+ }
5589
5637
  .np-upload-item__link a:hover,
5590
5638
  .np-upload-item__link a:active {
5591
5639
  -webkit-text-decoration: none;
5592
5640
  text-decoration: none;
5641
+ }
5642
+ .np-upload-item__link a:hover .np-upload-button,
5643
+ .np-upload-item__link a:active .np-upload-button {
5593
5644
  background-color: rgba(134,167,189,0.10196);
5594
5645
  background-color: var(--color-background-neutral);
5646
+ border-radius: inherit;
5595
5647
  }
5596
5648
  .np-upload-item__body {
5597
5649
  display: flex;
@@ -5616,6 +5668,7 @@ label.np-upload-button:not(.disabled):active {
5616
5668
  outline-offset: 0 !important;
5617
5669
  background-color: rgba(134,167,189,0.10196);
5618
5670
  background-color: var(--color-background-neutral);
5671
+ border: none;
5619
5672
  color: var(--color-interactive-primary);
5620
5673
  right: 16px;
5621
5674
  right: var(--size-16);
@@ -1494,7 +1494,7 @@ button.np-option {
1494
1494
  background-color: rgba(134,167,189,0.10196);
1495
1495
  background-color: var(--color-background-neutral);
1496
1496
  }
1497
- .np-select-option-placeholder:hover {
1497
+ .np-select-option-placeholder:not(.disabled):hover {
1498
1498
  background-color: var(--color-background-neutral-hover);
1499
1499
  }
1500
1500
  .np-select-option-placeholder:focus,
@@ -5444,6 +5444,9 @@ html:not([dir="rtl"]) .np-navigation-option {
5444
5444
  border-color: #c9cbce !important;
5445
5445
  border-color: var(--color-interactive-secondary) !important;
5446
5446
  }
5447
+ .np-upload-button-container.droppable-dropping:before {
5448
+ z-index: 2;
5449
+ }
5447
5450
  .np-upload-button-container input[type="file"] {
5448
5451
  opacity: 0;
5449
5452
  z-index: -1;
@@ -5454,6 +5457,7 @@ html:not([dir="rtl"]) .np-navigation-option {
5454
5457
  }
5455
5458
  .np-upload-button {
5456
5459
  width: 100%;
5460
+ border-top: 1px solid transparent;
5457
5461
  padding: 16px;
5458
5462
  padding: var(--padding-small);
5459
5463
  border-radius: 0;
@@ -5521,8 +5525,25 @@ label.np-upload-button:not(.disabled):active {
5521
5525
  color: var(--color-sentiment-negative) !important;
5522
5526
  }
5523
5527
  .np-theme-personal .np-upload-input-errors {
5528
+ list-style: none;
5524
5529
  padding-left: 0;
5525
- list-style-position: inside;
5530
+ }
5531
+ .np-theme-personal .np-upload-input-errors li {
5532
+ position: relative;
5533
+ padding-left: 16px;
5534
+ padding-left: var(--size-16);
5535
+ }
5536
+ @media (max-width: 320px) {
5537
+ .np-theme-personal .np-upload-input-errors li {
5538
+ padding-left: 32px;
5539
+ padding-left: var(--size-32);
5540
+ }
5541
+ }
5542
+ .np-theme-personal .np-upload-input-errors li:before {
5543
+ content: '•';
5544
+ position: absolute;
5545
+ display: block;
5546
+ left: 0;
5526
5547
  }
5527
5548
  .np-theme-personal .np-upload-input .status-circle {
5528
5549
  width: 24px;
@@ -5541,30 +5562,49 @@ label.np-upload-button:not(.disabled):active {
5541
5562
  .np-upload-item {
5542
5563
  border: 1px solid #c9cbce;
5543
5564
  border: 1px solid var(--color-interactive-secondary);
5565
+ position: relative;
5544
5566
  }
5545
- .np-upload-item:first-child ~ div:before {
5567
+ .np-upload-item:first-child ~ div:not(.np-upload-item__link):before,
5568
+ .np-upload-item:not(:first-child).np-upload-item__link .np-upload-item--link:before,
5569
+ .np-upload-item.np-upload-item__link:hover .np-upload-item--link:after {
5546
5570
  display: block;
5547
- position: relative;
5571
+ position: absolute;
5548
5572
  height: 1px;
5549
5573
  background-color: rgba(0,0,0,0.10196);
5550
5574
  background-color: var(--color-border-neutral);
5551
5575
  content: " ";
5552
- margin: 0 16px;
5553
- margin: 0 var(--size-16);
5576
+ left: 16px;
5577
+ left: var(--size-16);
5578
+ width: calc(100% - 2 * 16px);
5579
+ width: calc(100% - 2 * var(--size-16));
5580
+ }
5581
+ .np-upload-item:first-child ~ div:not(.np-upload-item__link):before,
5582
+ .np-upload-item:not(:first-child).np-upload-item__link .np-upload-item--link:before {
5583
+ top: 0;
5584
+ }
5585
+ .np-upload-item.np-upload-item__link:hover .np-upload-item--link:after {
5586
+ bottom: -1px;
5554
5587
  }
5555
5588
  .np-upload-item:first-child ~ div {
5556
- border-top: 0;
5589
+ border-top: 1px;
5590
+ }
5591
+ .np-upload-item:not(:first-child) .np-upload-item--link:hover {
5592
+ border-top-color: rgba(0,0,0,0.10196);
5593
+ border-top-color: var(--color-border-neutral);
5557
5594
  }
5558
5595
  .np-upload-item:not(:last-child) {
5559
5596
  border-bottom: 0;
5560
5597
  }
5561
- .np-upload-item.np-upload-item__link:hover:before,
5562
- .np-upload-button-container:hover:before {
5563
- margin: 0 !important;
5598
+ .np-upload-item.np-upload-item__link:hover + .np-upload-item:before,
5599
+ .np-upload-item.np-upload-item__link:hover + .np-upload-button-container:before,
5600
+ .np-upload-item.np-upload-item__link:hover + .np-upload-item .np-upload-item--link:before,
5601
+ .np-upload-item.np-upload-item__link:hover + .np-upload-button-container .np-upload-item--link:before {
5602
+ display: none;
5564
5603
  }
5565
- .np-upload-item.np-upload-item__link:hover + div:before,
5566
- .np-upload-button-container:hover + div:before {
5567
- margin: 0 !important;
5604
+ .np-upload-button-container:hover:before,
5605
+ .np-upload-button-container.droppable-dropping:before {
5606
+ left: 0 !important;
5607
+ width: 100% !important;
5568
5608
  }
5569
5609
  .np-upload-button-container:has(:focus-visible) {
5570
5610
  outline: var(--ring-outline-color) solid var(--ring-outline-width);
@@ -5581,17 +5621,29 @@ label.np-upload-button:not(.disabled):active {
5581
5621
  flex: 1;
5582
5622
  -webkit-text-decoration: none;
5583
5623
  text-decoration: none;
5624
+ border-top: 1px solid transparent;
5584
5625
  border-radius: inherit;
5585
5626
  }
5586
5627
  .np-upload-item__link a:focus-visible {
5587
5628
  outline-offset: -2px;
5588
5629
  }
5630
+ .np-upload-item__link a:hover:before {
5631
+ display: none !important;
5632
+ }
5633
+ .np-upload-item__link a:hover:after {
5634
+ left: 0 !important;
5635
+ width: 100% !important;
5636
+ }
5589
5637
  .np-upload-item__link a:hover,
5590
5638
  .np-upload-item__link a:active {
5591
5639
  -webkit-text-decoration: none;
5592
5640
  text-decoration: none;
5641
+ }
5642
+ .np-upload-item__link a:hover .np-upload-button,
5643
+ .np-upload-item__link a:active .np-upload-button {
5593
5644
  background-color: rgba(134,167,189,0.10196);
5594
5645
  background-color: var(--color-background-neutral);
5646
+ border-radius: inherit;
5595
5647
  }
5596
5648
  .np-upload-item__body {
5597
5649
  display: flex;
@@ -5616,6 +5668,7 @@ label.np-upload-button:not(.disabled):active {
5616
5668
  outline-offset: 0 !important;
5617
5669
  background-color: rgba(134,167,189,0.10196);
5618
5670
  background-color: var(--color-background-neutral);
5671
+ border: none;
5619
5672
  color: var(--color-interactive-primary);
5620
5673
  right: 16px;
5621
5674
  right: var(--size-16);
@@ -8,7 +8,7 @@
8
8
  background-color: rgba(134,167,189,0.10196);
9
9
  background-color: var(--color-background-neutral);
10
10
  }
11
- .np-select-option-placeholder:hover {
11
+ .np-select-option-placeholder:not(.disabled):hover {
12
12
  background-color: var(--color-background-neutral-hover);
13
13
  }
14
14
  .np-select-option-placeholder:focus,
@@ -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,+BAmBlB"}
@@ -1 +1 @@
1
- {"version":3,"file":"SelectOption.d.ts","sourceRoot":"","sources":["../../../src/selectOption/SelectOption.tsx"],"names":[],"mappings":"AACA,OAAqB,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAIlE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAI3D,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAU/C,MAAM,MAAM,oBAAoB,CAAC,CAAC,GAAG,OAAO,IAAI;IAC9C,KAAK,CAAC,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;IAC7B,OAAO,EAAE,iBAAiB,CAAC,CAAC,CAAC,EAAE,CAAC;CACjC,CAAC;AAEF,MAAM,MAAM,iBAAiB,CAAC,CAAC,GAAG,OAAO,IAAI,IAAI,CAC/C,WAAW,EACX,OAAO,GAAG,OAAO,GAAG,SAAS,GAAG,UAAU,CAC3C,GAAG;IACF,KAAK,CAAC,EAAE,CAAC,CAAC;CACX,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG,IAAI,CAAC,WAAW,EAAE,OAAO,GAAG,OAAO,GAAG,SAAS,CAAC,GAAG;IACvF,WAAW,CAAC,EAAE,iBAAiB,CAAC,UAAU,CAAC,CAAC;CAC7C,CAAC;AAEF,MAAM,MAAM,iBAAiB,CAAC,CAAC,GAAG,OAAO,IAAI;IAC3C,QAAQ,EAAE,CAAC,QAAQ,EAAE,iBAAiB,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC;IACnD,QAAQ,CAAC,EAAE,iBAAiB,CAAC,CAAC,CAAC,CAAC;IAChC,OAAO,EAAE,oBAAoB,CAAC,CAAC,CAAC,EAAE,CAAC;IACnC,WAAW,EAAE,uBAAuB,CAAC;CACtC,GAAG,IAAI,CACN,WAAW,EACX,IAAI,GAAG,OAAO,GAAG,OAAO,GAAG,SAAS,GAAG,SAAS,GAAG,UAAU,GAAG,qBAAqB,GAAG,UAAU,CACnG,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,CAAC,EAAE,EACtC,QAAQ,EAAE,iBAA6B,EACvC,OAAO,EACP,QAAQ,EACR,WAAW,EACX,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,iBAAiB,CAAC,CAAC,CAAC,+BAwGtB"}
1
+ {"version":3,"file":"SelectOption.d.ts","sourceRoot":"","sources":["../../../src/selectOption/SelectOption.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAGpD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAI3D,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAU/C,MAAM,MAAM,oBAAoB,CAAC,CAAC,GAAG,OAAO,IAAI;IAC9C,KAAK,CAAC,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;IAC7B,OAAO,EAAE,iBAAiB,CAAC,CAAC,CAAC,EAAE,CAAC;CACjC,CAAC;AAEF,MAAM,MAAM,iBAAiB,CAAC,CAAC,GAAG,OAAO,IAAI,IAAI,CAC/C,WAAW,EACX,OAAO,GAAG,OAAO,GAAG,SAAS,GAAG,UAAU,CAC3C,GAAG;IACF,KAAK,CAAC,EAAE,CAAC,CAAC;CACX,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG,IAAI,CAAC,WAAW,EAAE,OAAO,GAAG,OAAO,GAAG,SAAS,CAAC,GAAG;IACvF,WAAW,CAAC,EAAE,iBAAiB,CAAC,UAAU,CAAC,CAAC;CAC7C,CAAC;AAEF,MAAM,MAAM,iBAAiB,CAAC,CAAC,GAAG,OAAO,IAAI;IAC3C,QAAQ,EAAE,CAAC,QAAQ,EAAE,iBAAiB,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC;IACnD,QAAQ,CAAC,EAAE,iBAAiB,CAAC,CAAC,CAAC,CAAC;IAChC,OAAO,EAAE,oBAAoB,CAAC,CAAC,CAAC,EAAE,CAAC;IACnC,WAAW,EAAE,uBAAuB,CAAC;CACtC,GAAG,IAAI,CACN,WAAW,EACX,IAAI,GAAG,OAAO,GAAG,OAAO,GAAG,SAAS,GAAG,SAAS,GAAG,UAAU,GAAG,qBAAqB,GAAG,UAAU,CACnG,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,CAAC,EAAE,EACtC,QAAQ,EAAE,iBAA6B,EACvC,OAAO,EACP,QAAQ,EACR,WAAW,EACX,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,iBAAiB,CAAC,CAAC,CAAC,+BAuGtB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@transferwise/components",
3
- "version": "0.0.0-experimental-3b84ee4",
3
+ "version": "0.0.0-experimental-8a06fb3",
4
4
  "description": "Neptune React components",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -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';
package/src/main.css CHANGED
@@ -1494,7 +1494,7 @@ button.np-option {
1494
1494
  background-color: rgba(134,167,189,0.10196);
1495
1495
  background-color: var(--color-background-neutral);
1496
1496
  }
1497
- .np-select-option-placeholder:hover {
1497
+ .np-select-option-placeholder:not(.disabled):hover {
1498
1498
  background-color: var(--color-background-neutral-hover);
1499
1499
  }
1500
1500
  .np-select-option-placeholder:focus,
@@ -5444,6 +5444,9 @@ html:not([dir="rtl"]) .np-navigation-option {
5444
5444
  border-color: #c9cbce !important;
5445
5445
  border-color: var(--color-interactive-secondary) !important;
5446
5446
  }
5447
+ .np-upload-button-container.droppable-dropping:before {
5448
+ z-index: 2;
5449
+ }
5447
5450
  .np-upload-button-container input[type="file"] {
5448
5451
  opacity: 0;
5449
5452
  z-index: -1;
@@ -5454,6 +5457,7 @@ html:not([dir="rtl"]) .np-navigation-option {
5454
5457
  }
5455
5458
  .np-upload-button {
5456
5459
  width: 100%;
5460
+ border-top: 1px solid transparent;
5457
5461
  padding: 16px;
5458
5462
  padding: var(--padding-small);
5459
5463
  border-radius: 0;
@@ -5521,8 +5525,25 @@ label.np-upload-button:not(.disabled):active {
5521
5525
  color: var(--color-sentiment-negative) !important;
5522
5526
  }
5523
5527
  .np-theme-personal .np-upload-input-errors {
5528
+ list-style: none;
5524
5529
  padding-left: 0;
5525
- list-style-position: inside;
5530
+ }
5531
+ .np-theme-personal .np-upload-input-errors li {
5532
+ position: relative;
5533
+ padding-left: 16px;
5534
+ padding-left: var(--size-16);
5535
+ }
5536
+ @media (max-width: 320px) {
5537
+ .np-theme-personal .np-upload-input-errors li {
5538
+ padding-left: 32px;
5539
+ padding-left: var(--size-32);
5540
+ }
5541
+ }
5542
+ .np-theme-personal .np-upload-input-errors li:before {
5543
+ content: '•';
5544
+ position: absolute;
5545
+ display: block;
5546
+ left: 0;
5526
5547
  }
5527
5548
  .np-theme-personal .np-upload-input .status-circle {
5528
5549
  width: 24px;
@@ -5541,30 +5562,49 @@ label.np-upload-button:not(.disabled):active {
5541
5562
  .np-upload-item {
5542
5563
  border: 1px solid #c9cbce;
5543
5564
  border: 1px solid var(--color-interactive-secondary);
5565
+ position: relative;
5544
5566
  }
5545
- .np-upload-item:first-child ~ div:before {
5567
+ .np-upload-item:first-child ~ div:not(.np-upload-item__link):before,
5568
+ .np-upload-item:not(:first-child).np-upload-item__link .np-upload-item--link:before,
5569
+ .np-upload-item.np-upload-item__link:hover .np-upload-item--link:after {
5546
5570
  display: block;
5547
- position: relative;
5571
+ position: absolute;
5548
5572
  height: 1px;
5549
5573
  background-color: rgba(0,0,0,0.10196);
5550
5574
  background-color: var(--color-border-neutral);
5551
5575
  content: " ";
5552
- margin: 0 16px;
5553
- margin: 0 var(--size-16);
5576
+ left: 16px;
5577
+ left: var(--size-16);
5578
+ width: calc(100% - 2 * 16px);
5579
+ width: calc(100% - 2 * var(--size-16));
5580
+ }
5581
+ .np-upload-item:first-child ~ div:not(.np-upload-item__link):before,
5582
+ .np-upload-item:not(:first-child).np-upload-item__link .np-upload-item--link:before {
5583
+ top: 0;
5584
+ }
5585
+ .np-upload-item.np-upload-item__link:hover .np-upload-item--link:after {
5586
+ bottom: -1px;
5554
5587
  }
5555
5588
  .np-upload-item:first-child ~ div {
5556
- border-top: 0;
5589
+ border-top: 1px;
5590
+ }
5591
+ .np-upload-item:not(:first-child) .np-upload-item--link:hover {
5592
+ border-top-color: rgba(0,0,0,0.10196);
5593
+ border-top-color: var(--color-border-neutral);
5557
5594
  }
5558
5595
  .np-upload-item:not(:last-child) {
5559
5596
  border-bottom: 0;
5560
5597
  }
5561
- .np-upload-item.np-upload-item__link:hover:before,
5562
- .np-upload-button-container:hover:before {
5563
- margin: 0 !important;
5598
+ .np-upload-item.np-upload-item__link:hover + .np-upload-item:before,
5599
+ .np-upload-item.np-upload-item__link:hover + .np-upload-button-container:before,
5600
+ .np-upload-item.np-upload-item__link:hover + .np-upload-item .np-upload-item--link:before,
5601
+ .np-upload-item.np-upload-item__link:hover + .np-upload-button-container .np-upload-item--link:before {
5602
+ display: none;
5564
5603
  }
5565
- .np-upload-item.np-upload-item__link:hover + div:before,
5566
- .np-upload-button-container:hover + div:before {
5567
- margin: 0 !important;
5604
+ .np-upload-button-container:hover:before,
5605
+ .np-upload-button-container.droppable-dropping:before {
5606
+ left: 0 !important;
5607
+ width: 100% !important;
5568
5608
  }
5569
5609
  .np-upload-button-container:has(:focus-visible) {
5570
5610
  outline: var(--ring-outline-color) solid var(--ring-outline-width);
@@ -5581,17 +5621,29 @@ label.np-upload-button:not(.disabled):active {
5581
5621
  flex: 1;
5582
5622
  -webkit-text-decoration: none;
5583
5623
  text-decoration: none;
5624
+ border-top: 1px solid transparent;
5584
5625
  border-radius: inherit;
5585
5626
  }
5586
5627
  .np-upload-item__link a:focus-visible {
5587
5628
  outline-offset: -2px;
5588
5629
  }
5630
+ .np-upload-item__link a:hover:before {
5631
+ display: none !important;
5632
+ }
5633
+ .np-upload-item__link a:hover:after {
5634
+ left: 0 !important;
5635
+ width: 100% !important;
5636
+ }
5589
5637
  .np-upload-item__link a:hover,
5590
5638
  .np-upload-item__link a:active {
5591
5639
  -webkit-text-decoration: none;
5592
5640
  text-decoration: none;
5641
+ }
5642
+ .np-upload-item__link a:hover .np-upload-button,
5643
+ .np-upload-item__link a:active .np-upload-button {
5593
5644
  background-color: rgba(134,167,189,0.10196);
5594
5645
  background-color: var(--color-background-neutral);
5646
+ border-radius: inherit;
5595
5647
  }
5596
5648
  .np-upload-item__body {
5597
5649
  display: flex;
@@ -5616,6 +5668,7 @@ label.np-upload-button:not(.disabled):active {
5616
5668
  outline-offset: 0 !important;
5617
5669
  background-color: rgba(134,167,189,0.10196);
5618
5670
  background-color: var(--color-background-neutral);
5671
+ border: none;
5619
5672
  color: var(--color-interactive-primary);
5620
5673
  right: 16px;
5621
5674
  right: var(--size-16);
@@ -8,7 +8,7 @@
8
8
  background-color: rgba(134,167,189,0.10196);
9
9
  background-color: var(--color-background-neutral);
10
10
  }
11
- .np-select-option-placeholder:hover {
11
+ .np-select-option-placeholder:not(.disabled):hover {
12
12
  background-color: var(--color-background-neutral-hover);
13
13
  }
14
14
  .np-select-option-placeholder:focus,
@@ -7,7 +7,7 @@
7
7
  &-placeholder {
8
8
  background-color: var(--color-background-neutral);
9
9
 
10
- &:hover {
10
+ &:not(.disabled):hover {
11
11
  background-color: var(--color-background-neutral-hover);
12
12
  }
13
13