@transferwise/neptune-css 14.13.3 → 14.14.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.
@@ -1,5 +1,4 @@
1
1
  .alert {
2
- white-space: pre-wrap;
3
2
  padding: 16px;
4
3
  padding: var(--size-16);
5
4
  border-radius: 10px;
@@ -1501,7 +1501,8 @@ select[multiple].input-lg {
1501
1501
  box-shadow: inset 0 0 0 1px #c9cbce;
1502
1502
  box-shadow: inset 0 0 0 1px var(--color-interactive-secondary);
1503
1503
  }
1504
- .tw-checkbox-button .tw-checkbox-check {
1504
+ .tw-checkbox-button .tw-checkbox-check,
1505
+ .tw-checkbox-button .np-tw-checkbox-indeterminate {
1505
1506
  width: 20px;
1506
1507
  height: 20px;
1507
1508
  margin: 0;
@@ -1542,26 +1543,32 @@ input[type="checkbox"]:focus-visible + .tw-checkbox-button {
1542
1543
  }
1543
1544
  .tw-checkbox-button:checked,
1544
1545
  .tw-checkbox-button.checked,
1545
- input[type="checkbox"]:checked + .tw-checkbox-button {
1546
+ input[type="checkbox"]:checked + .tw-checkbox-button,
1547
+ input[type="checkbox"]:indeterminate + .tw-checkbox-button {
1546
1548
  border-color: #00a2dd !important;
1547
1549
  border-color: var(--color-interactive-accent) !important;
1548
1550
  background-color: #00a2dd;
1549
1551
  background-color: var(--color-interactive-accent);
1550
1552
  }
1553
+ .np-theme-personal .tw-checkbox-button:checked,
1554
+ .np-theme-personal .tw-checkbox-button.checked,
1555
+ .np-theme-personal input[type="checkbox"]:checked + .tw-checkbox-button,
1556
+ .np-theme-personal input[type="checkbox"]:indeterminate + .tw-checkbox-button {
1557
+ background-color: var(--color-interactive-primary);
1558
+ box-shadow: inset 0 0 0 1px var(--color-interactive-primary);
1559
+ }
1551
1560
  .tw-checkbox-button:checked .tw-checkbox-check,
1552
1561
  .tw-checkbox-button.checked .tw-checkbox-check,
1553
1562
  input[type="checkbox"]:checked + .tw-checkbox-button .tw-checkbox-check {
1554
1563
  display: inline-block;
1555
1564
  }
1556
- .np-theme-personal .tw-checkbox-button:checked,
1557
- .np-theme-personal .tw-checkbox-button.checked,
1558
- .np-theme-personal input[type="checkbox"]:checked + .tw-checkbox-button {
1559
- background-color: var(--color-interactive-primary);
1560
- box-shadow: inset 0 0 0 1px var(--color-interactive-primary);
1565
+ input[type="checkbox"]:indeterminate + .tw-checkbox-button .np-tw-checkbox-indeterminate {
1566
+ display: inline-block;
1561
1567
  }
1562
1568
  .tw-checkbox-button:checked:hover,
1563
1569
  .tw-checkbox-button.checked:hover,
1564
- input[type="checkbox"]:not(.disabled):not(:disabled):checked:hover + .tw-checkbox-button {
1570
+ input[type="checkbox"]:not(.disabled):not(:disabled):checked:hover + .tw-checkbox-button,
1571
+ input[type="checkbox"]:not(.disabled):not(:disabled):indeterminate:hover + .tw-checkbox-button {
1565
1572
  border-color: #008fc9 !important;
1566
1573
  border-color: var(--color-interactive-accent-hover) !important;
1567
1574
  background-color: #008fc9;
@@ -1569,14 +1576,16 @@ input[type="checkbox"]:not(.disabled):not(:disabled):checked:hover + .tw-checkbo
1569
1576
  }
1570
1577
  .np-theme-personal .tw-checkbox-button:checked:hover,
1571
1578
  .np-theme-personal .tw-checkbox-button.checked:hover,
1572
- .np-theme-personal input[type="checkbox"]:not(.disabled):not(:disabled):checked:hover + .tw-checkbox-button {
1579
+ .np-theme-personal input[type="checkbox"]:not(.disabled):not(:disabled):checked:hover + .tw-checkbox-button,
1580
+ .np-theme-personal input[type="checkbox"]:not(.disabled):not(:disabled):indeterminate:hover + .tw-checkbox-button {
1573
1581
  border-color: var(--color-interactive-primary-hover) !important;
1574
1582
  background-color: var(--color-interactive-primary-hover);
1575
1583
  box-shadow: inset 0 0 0 1px var(--color-interactive-primary-hover);
1576
1584
  }
1577
1585
  .tw-checkbox-button:checked:active,
1578
1586
  .tw-checkbox-button.checked:active,
1579
- input[type="checkbox"]:not(.disabled):not(:disabled):checked:active + .tw-checkbox-button {
1587
+ input[type="checkbox"]:not(.disabled):not(:disabled):checked:active + .tw-checkbox-button,
1588
+ input[type="checkbox"]:not(.disabled):not(:disabled):indeterminate:active + .tw-checkbox-button {
1580
1589
  border-color: #0081ba !important;
1581
1590
  border-color: var(--color-interactive-accent-active) !important;
1582
1591
  background-color: #0081ba;
@@ -1584,7 +1593,8 @@ input[type="checkbox"]:not(.disabled):not(:disabled):checked:active + .tw-checkb
1584
1593
  }
1585
1594
  .np-theme-personal .tw-checkbox-button:checked:active,
1586
1595
  .np-theme-personal .tw-checkbox-button.checked:active,
1587
- .np-theme-personal input[type="checkbox"]:not(.disabled):not(:disabled):checked:active + .tw-checkbox-button {
1596
+ .np-theme-personal input[type="checkbox"]:not(.disabled):not(:disabled):checked:active + .tw-checkbox-button,
1597
+ .np-theme-personal input[type="checkbox"]:not(.disabled):not(:disabled):indeterminate:active + .tw-checkbox-button {
1588
1598
  border-color: var(--color-interactive-primary-active) !important;
1589
1599
  background-color: var(--color-interactive-primary-active);
1590
1600
  box-shadow: inset 0 0 0 1px var(--color-interactive-primary-active);
@@ -1601,19 +1611,22 @@ input[type="checkbox"]:not(.disabled):not(:disabled):checked:active + .tw-checkb
1601
1611
  background-color: #e74848;
1602
1612
  background-color: var(--color-interactive-negative);
1603
1613
  }
1604
- .checkbox.has-error input[type="checkbox"]:not(.disabled):not(:disabled):checked + .tw-checkbox-button {
1614
+ .checkbox.has-error input[type="checkbox"]:not(.disabled):not(:disabled):checked + .tw-checkbox-button,
1615
+ .checkbox.has-error input[type="checkbox"]:not(.disabled):not(:disabled):indeterminate + .tw-checkbox-button {
1605
1616
  border-color: #e74848 !important;
1606
1617
  border-color: var(--color-interactive-negative) !important;
1607
1618
  background-color: #e74848;
1608
1619
  background-color: var(--color-interactive-negative);
1609
1620
  }
1610
- .checkbox.has-error input[type="checkbox"]:not(.disabled):not(:disabled):checked:hover + .tw-checkbox-button {
1621
+ .checkbox.has-error input[type="checkbox"]:not(.disabled):not(:disabled):checked:hover + .tw-checkbox-button,
1622
+ .checkbox.has-error input[type="checkbox"]:not(.disabled):not(:disabled):checked:indeterminate + .tw-checkbox-button {
1611
1623
  border-color: #d03238 !important;
1612
1624
  border-color: var(--color-interactive-negative-hover) !important;
1613
1625
  background-color: #d03238;
1614
1626
  background-color: var(--color-interactive-negative-hover);
1615
1627
  }
1616
- .checkbox.has-error input[type="checkbox"]:not(.disabled):not(:disabled):checked:active + .tw-checkbox-button {
1628
+ .checkbox.has-error input[type="checkbox"]:not(.disabled):not(:disabled):checked:active + .tw-checkbox-button,
1629
+ .checkbox.has-error input[type="checkbox"]:not(.disabled):not(:disabled):indeterminate + .tw-checkbox-button {
1617
1630
  border-color: #bf1e2c !important;
1618
1631
  border-color: var(--color-interactive-negative-active) !important;
1619
1632
  background-color: #bf1e2c;
@@ -6011,7 +6011,6 @@ tbody.collapse.in {
6011
6011
  }
6012
6012
 
6013
6013
  .alert {
6014
- white-space: pre-wrap;
6015
6014
  padding: 16px;
6016
6015
  padding: var(--size-16);
6017
6016
  border-radius: 10px;
@@ -10954,7 +10953,8 @@ select[multiple].input-lg {
10954
10953
  box-shadow: inset 0 0 0 1px var(--color-interactive-secondary);
10955
10954
  }
10956
10955
 
10957
- .tw-checkbox-button .tw-checkbox-check {
10956
+ .tw-checkbox-button .tw-checkbox-check,
10957
+ .tw-checkbox-button .np-tw-checkbox-indeterminate {
10958
10958
  width: 20px;
10959
10959
  height: 20px;
10960
10960
  margin: 0;
@@ -11003,29 +11003,36 @@ input[type="checkbox"]:focus-visible + .tw-checkbox-button {
11003
11003
 
11004
11004
  .tw-checkbox-button:checked,
11005
11005
  .tw-checkbox-button.checked,
11006
- input[type="checkbox"]:checked + .tw-checkbox-button {
11006
+ input[type="checkbox"]:checked + .tw-checkbox-button,
11007
+ input[type="checkbox"]:indeterminate + .tw-checkbox-button {
11007
11008
  border-color: #00a2dd !important;
11008
11009
  border-color: var(--color-interactive-accent) !important;
11009
11010
  background-color: #00a2dd;
11010
11011
  background-color: var(--color-interactive-accent);
11011
11012
  }
11012
11013
 
11014
+ .np-theme-personal .tw-checkbox-button:checked,
11015
+ .np-theme-personal .tw-checkbox-button.checked,
11016
+ .np-theme-personal input[type="checkbox"]:checked + .tw-checkbox-button,
11017
+ .np-theme-personal input[type="checkbox"]:indeterminate + .tw-checkbox-button {
11018
+ background-color: var(--color-interactive-primary);
11019
+ box-shadow: inset 0 0 0 1px var(--color-interactive-primary);
11020
+ }
11021
+
11013
11022
  .tw-checkbox-button:checked .tw-checkbox-check,
11014
11023
  .tw-checkbox-button.checked .tw-checkbox-check,
11015
11024
  input[type="checkbox"]:checked + .tw-checkbox-button .tw-checkbox-check {
11016
11025
  display: inline-block;
11017
11026
  }
11018
11027
 
11019
- .np-theme-personal .tw-checkbox-button:checked,
11020
- .np-theme-personal .tw-checkbox-button.checked,
11021
- .np-theme-personal input[type="checkbox"]:checked + .tw-checkbox-button {
11022
- background-color: var(--color-interactive-primary);
11023
- box-shadow: inset 0 0 0 1px var(--color-interactive-primary);
11028
+ input[type="checkbox"]:indeterminate + .tw-checkbox-button .np-tw-checkbox-indeterminate {
11029
+ display: inline-block;
11024
11030
  }
11025
11031
 
11026
11032
  .tw-checkbox-button:checked:hover,
11027
11033
  .tw-checkbox-button.checked:hover,
11028
- input[type="checkbox"]:not(.disabled):not(:disabled):checked:hover + .tw-checkbox-button {
11034
+ input[type="checkbox"]:not(.disabled):not(:disabled):checked:hover + .tw-checkbox-button,
11035
+ input[type="checkbox"]:not(.disabled):not(:disabled):indeterminate:hover + .tw-checkbox-button {
11029
11036
  border-color: #008fc9 !important;
11030
11037
  border-color: var(--color-interactive-accent-hover) !important;
11031
11038
  background-color: #008fc9;
@@ -11034,7 +11041,8 @@ input[type="checkbox"]:not(.disabled):not(:disabled):checked:hover + .tw-checkbo
11034
11041
 
11035
11042
  .np-theme-personal .tw-checkbox-button:checked:hover,
11036
11043
  .np-theme-personal .tw-checkbox-button.checked:hover,
11037
- .np-theme-personal input[type="checkbox"]:not(.disabled):not(:disabled):checked:hover + .tw-checkbox-button {
11044
+ .np-theme-personal input[type="checkbox"]:not(.disabled):not(:disabled):checked:hover + .tw-checkbox-button,
11045
+ .np-theme-personal input[type="checkbox"]:not(.disabled):not(:disabled):indeterminate:hover + .tw-checkbox-button {
11038
11046
  border-color: var(--color-interactive-primary-hover) !important;
11039
11047
  background-color: var(--color-interactive-primary-hover);
11040
11048
  box-shadow: inset 0 0 0 1px var(--color-interactive-primary-hover);
@@ -11042,7 +11050,8 @@ input[type="checkbox"]:not(.disabled):not(:disabled):checked:hover + .tw-checkbo
11042
11050
 
11043
11051
  .tw-checkbox-button:checked:active,
11044
11052
  .tw-checkbox-button.checked:active,
11045
- input[type="checkbox"]:not(.disabled):not(:disabled):checked:active + .tw-checkbox-button {
11053
+ input[type="checkbox"]:not(.disabled):not(:disabled):checked:active + .tw-checkbox-button,
11054
+ input[type="checkbox"]:not(.disabled):not(:disabled):indeterminate:active + .tw-checkbox-button {
11046
11055
  border-color: #0081ba !important;
11047
11056
  border-color: var(--color-interactive-accent-active) !important;
11048
11057
  background-color: #0081ba;
@@ -11051,7 +11060,8 @@ input[type="checkbox"]:not(.disabled):not(:disabled):checked:active + .tw-checkb
11051
11060
 
11052
11061
  .np-theme-personal .tw-checkbox-button:checked:active,
11053
11062
  .np-theme-personal .tw-checkbox-button.checked:active,
11054
- .np-theme-personal input[type="checkbox"]:not(.disabled):not(:disabled):checked:active + .tw-checkbox-button {
11063
+ .np-theme-personal input[type="checkbox"]:not(.disabled):not(:disabled):checked:active + .tw-checkbox-button,
11064
+ .np-theme-personal input[type="checkbox"]:not(.disabled):not(:disabled):indeterminate:active + .tw-checkbox-button {
11055
11065
  border-color: var(--color-interactive-primary-active) !important;
11056
11066
  background-color: var(--color-interactive-primary-active);
11057
11067
  box-shadow: inset 0 0 0 1px var(--color-interactive-primary-active);
@@ -11071,21 +11081,24 @@ input[type="checkbox"]:not(.disabled):not(:disabled):checked:active + .tw-checkb
11071
11081
  background-color: var(--color-interactive-negative);
11072
11082
  }
11073
11083
 
11074
- .checkbox.has-error input[type="checkbox"]:not(.disabled):not(:disabled):checked + .tw-checkbox-button {
11084
+ .checkbox.has-error input[type="checkbox"]:not(.disabled):not(:disabled):checked + .tw-checkbox-button,
11085
+ .checkbox.has-error input[type="checkbox"]:not(.disabled):not(:disabled):indeterminate + .tw-checkbox-button {
11075
11086
  border-color: #e74848 !important;
11076
11087
  border-color: var(--color-interactive-negative) !important;
11077
11088
  background-color: #e74848;
11078
11089
  background-color: var(--color-interactive-negative);
11079
11090
  }
11080
11091
 
11081
- .checkbox.has-error input[type="checkbox"]:not(.disabled):not(:disabled):checked:hover + .tw-checkbox-button {
11092
+ .checkbox.has-error input[type="checkbox"]:not(.disabled):not(:disabled):checked:hover + .tw-checkbox-button,
11093
+ .checkbox.has-error input[type="checkbox"]:not(.disabled):not(:disabled):checked:indeterminate + .tw-checkbox-button {
11082
11094
  border-color: #d03238 !important;
11083
11095
  border-color: var(--color-interactive-negative-hover) !important;
11084
11096
  background-color: #d03238;
11085
11097
  background-color: var(--color-interactive-negative-hover);
11086
11098
  }
11087
11099
 
11088
- .checkbox.has-error input[type="checkbox"]:not(.disabled):not(:disabled):checked:active + .tw-checkbox-button {
11100
+ .checkbox.has-error input[type="checkbox"]:not(.disabled):not(:disabled):checked:active + .tw-checkbox-button,
11101
+ .checkbox.has-error input[type="checkbox"]:not(.disabled):not(:disabled):indeterminate + .tw-checkbox-button {
11089
11102
  border-color: #bf1e2c !important;
11090
11103
  border-color: var(--color-interactive-negative-active) !important;
11091
11104
  background-color: #bf1e2c;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@transferwise/neptune-css",
3
3
  "description": "Neptune CSS library",
4
- "version": "14.13.3",
4
+ "version": "14.14.0",
5
5
  "license": "MIT",
6
6
  "repository": {
7
7
  "type": "git",
@@ -4,7 +4,6 @@
4
4
  @import (reference) "./mixins/_alerts.less";
5
5
 
6
6
  .alert {
7
- white-space: pre-wrap;
8
7
  padding: var(--size-16);
9
8
  border-radius: 10px;
10
9
  color: var(--color-content-primary);
@@ -39,7 +39,7 @@
39
39
  box-shadow: inset 0 0 0 1px var(--color-interactive-secondary);
40
40
  }
41
41
 
42
- .tw-checkbox-check {
42
+ .tw-checkbox-check, .np-tw-checkbox-indeterminate {
43
43
  width: 20px;
44
44
  height: 20px;
45
45
  margin: 0;
@@ -79,23 +79,36 @@
79
79
 
80
80
  &:checked,
81
81
  &.checked,
82
- input[type="checkbox"]:checked + & {
82
+ input[type="checkbox"]:checked + &,
83
+ input[type="checkbox"]:indeterminate + & {
83
84
  border-color: var(--color-interactive-accent) !important;
84
85
  background-color: var(--color-interactive-accent);
85
86
 
87
+ .np-theme-personal & {
88
+ background-color: var(--color-interactive-primary);
89
+ box-shadow: inset 0 0 0 1px var(--color-interactive-primary);
90
+ }
91
+ }
92
+
93
+ &:checked,
94
+ &.checked,
95
+ input[type="checkbox"]:checked + & {
86
96
  .tw-checkbox-check {
87
97
  display: inline-block;
88
98
  }
89
99
 
90
- .np-theme-personal & {
91
- background-color: var(--color-interactive-primary);
92
- box-shadow: inset 0 0 0 1px var(--color-interactive-primary);
100
+ }
101
+
102
+ input[type="checkbox"]:indeterminate + & {
103
+ .np-tw-checkbox-indeterminate {
104
+ display: inline-block;
93
105
  }
94
106
  }
95
107
 
96
108
  &:checked:hover,
97
109
  &.checked:hover,
98
- input[type="checkbox"]:not(.disabled, :disabled):checked:hover + & {
110
+ input[type="checkbox"]:not(.disabled, :disabled):checked:hover + &,
111
+ input[type="checkbox"]:not(.disabled, :disabled):indeterminate:hover + & {
99
112
  border-color: var(--color-interactive-accent-hover) !important;
100
113
  background-color: var(--color-interactive-accent-hover);
101
114
 
@@ -108,7 +121,8 @@
108
121
 
109
122
  &:checked:active,
110
123
  &.checked:active,
111
- input[type="checkbox"]:not(.disabled, :disabled):checked:active + & {
124
+ input[type="checkbox"]:not(.disabled, :disabled):checked:active + &,
125
+ input[type="checkbox"]:not(.disabled, :disabled):indeterminate:active + & {
112
126
  border-color: var(--color-interactive-accent-active) !important;
113
127
  background-color: var(--color-interactive-accent-active);
114
128
 
@@ -129,17 +143,20 @@
129
143
  }
130
144
  }
131
145
 
132
- .checkbox.has-error input[type="checkbox"]:not(.disabled, :disabled):checked + & {
146
+ .checkbox.has-error input[type="checkbox"]:not(.disabled, :disabled):checked + &,
147
+ .checkbox.has-error input[type="checkbox"]:not(.disabled, :disabled):indeterminate + & {
133
148
  border-color: var(--color-interactive-negative) !important;
134
149
  background-color: var(--color-interactive-negative);
135
150
  }
136
151
 
137
- .checkbox.has-error input[type="checkbox"]:not(.disabled, :disabled):checked:hover + & {
152
+ .checkbox.has-error input[type="checkbox"]:not(.disabled, :disabled):checked:hover + &,
153
+ .checkbox.has-error input[type="checkbox"]:not(.disabled, :disabled):checked:indeterminate + & {
138
154
  border-color: var(--color-interactive-negative-hover) !important;
139
155
  background-color: var(--color-interactive-negative-hover);
140
156
  }
141
157
 
142
- .checkbox.has-error input[type="checkbox"]:not(.disabled, :disabled):checked:active + & {
158
+ .checkbox.has-error input[type="checkbox"]:not(.disabled, :disabled):checked:active + &,
159
+ .checkbox.has-error input[type="checkbox"]:not(.disabled, :disabled):indeterminate + & {
143
160
  border-color: var(--color-interactive-negative-active) !important;
144
161
  background-color: var(--color-interactive-negative-active);
145
162
  }
@@ -34,4 +34,4 @@
34
34
  height: 2px;
35
35
  width: 11px;
36
36
  }
37
- }
37
+ }