@transferwise/components 0.0.0-experimental-909e802 → 0.0.0-experimental-e3cd380

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
@@ -27152,7 +27152,6 @@ a[data-toggle="tooltip"] {
27152
27152
  /* Button Styles */
27153
27153
 
27154
27154
  .wds-Button {
27155
- background: yellow !important;
27156
27155
  display: inline-flex;
27157
27156
  flex: none;
27158
27157
  width: auto;
@@ -46,7 +46,6 @@
46
46
  }
47
47
  /* Button Styles */
48
48
  .wds-Button {
49
- background: yellow !important;
50
49
  display: inline-flex;
51
50
  flex: none;
52
51
  width: auto;
@@ -27152,7 +27152,6 @@ a[data-toggle="tooltip"] {
27152
27152
  /* Button Styles */
27153
27153
 
27154
27154
  .wds-Button {
27155
- background: yellow !important;
27156
27155
  display: inline-flex;
27157
27156
  flex: none;
27158
27157
  width: auto;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@transferwise/components",
3
- "version": "0.0.0-experimental-909e802",
3
+ "version": "0.0.0-experimental-e3cd380",
4
4
  "description": "Neptune React components",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -46,7 +46,6 @@
46
46
  }
47
47
  /* Button Styles */
48
48
  .wds-Button {
49
- background: yellow !important;
50
49
  display: inline-flex;
51
50
  flex: none;
52
51
  width: auto;
@@ -1,8 +1,7 @@
1
- @import "./Button.vars.less";
1
+ @import './Button.vars.less';
2
2
 
3
3
  /* Button Styles */
4
4
  .wds-Button {
5
- background: yellow !important;
6
5
  display: inline-flex;
7
6
  flex: none;
8
7
  width: auto;
@@ -18,9 +17,7 @@
18
17
  border-radius: var(--Button-border-radius);
19
18
  color: var(--Button-color);
20
19
  cursor: pointer;
21
- transition:
22
- color,
23
- background-color var(--Button-transition-duration) var(--Button-transition-easing);
20
+ transition: color, background-color var(--Button-transition-duration) var(--Button-transition-easing);
24
21
 
25
22
  &,
26
23
  &:hover,
@@ -93,7 +90,7 @@
93
90
  &:hover,
94
91
  &:active,
95
92
  &:focus {
96
- .wds-Button-labelText {
93
+ .wds-Button-labelText{
97
94
  text-decoration: underline;
98
95
  text-underline-offset: 3px;
99
96
  text-decoration-thickness: 1px;
@@ -128,15 +125,15 @@
128
125
  &--medium {
129
126
  padding: var(--Button-medium-padding);
130
127
 
131
- &:has(.wds-Button-avatars) {
128
+ &:has(.wds-Button-avatars){
132
129
  padding-inline-start: var(--size-8);
133
130
  }
134
131
 
135
- &:has(.wds-Button-icon--end) {
132
+ &:has(.wds-Button-icon--end){
136
133
  padding-inline-end: var(--size-8);
137
134
  }
138
135
 
139
- .wds-Button-icon--start {
136
+ .wds-Button-icon--start{
140
137
  margin-inline-end: var(--Button-label-gap);
141
138
  }
142
139
  }
@@ -144,15 +141,17 @@
144
141
  &--small {
145
142
  padding: var(--Button-small-padding);
146
143
 
147
- &:has(.wds-Button-icon--start) {
144
+ &:has(.wds-Button-icon--start){
148
145
  padding-inline-start: var(--size-8);
149
146
  }
150
147
 
151
- &:has(.wds-Button-icon--end) {
148
+ &:has(.wds-Button-icon--end){
152
149
  padding-inline-end: var(--size-8);
153
150
  }
154
151
  }
155
152
 
153
+
154
+
156
155
  // Width modifiers
157
156
  &--block {
158
157
  width: 100%;
@@ -170,11 +169,11 @@
170
169
  &-icon {
171
170
  display: inline-block;
172
171
 
173
- &--md {
172
+ &--md{
174
173
  --Button-iconSize: 18px;
175
174
  }
176
175
 
177
- &--sm {
176
+ &--sm{
178
177
  --Button-iconSize: 16px;
179
178
  }
180
179
 
@@ -226,12 +225,7 @@
226
225
  .wds-Button--secondary &,
227
226
  .wds-Button--secondary-neutral &,
228
227
  .wds-Button--tertiary & {
229
- .np-theme-personal:not(
230
- .np-theme-personal--dark,
231
- .np-theme-personal--forest-green,
232
- .np-theme-personal--bright-green
233
- )
234
- & {
228
+ .np-theme-personal:not(.np-theme-personal--dark, .np-theme-personal--forest-green, .np-theme-personal--bright-green) & {
235
229
  --circle-border-color: color-mix(in srgb, var(--Button-color) 12%, transparent);
236
230
  }
237
231
  }
@@ -251,6 +245,7 @@
251
245
  }
252
246
  }
253
247
 
248
+
254
249
  :dir(rtl) {
255
250
  .wds-Button {
256
251
  .tw-icon-chevron-right,
@@ -0,0 +1,65 @@
1
+ import List from '../../list';
2
+
3
+ import { ListItem, type ListItemProps } from '../ListItem';
4
+ import {
5
+ InfoCircle,
6
+ Documents,
7
+ Warning,
8
+ Home,
9
+ Globe,
10
+ People,
11
+ Link as LinkIcon,
12
+ } from '@transferwise/icons';
13
+
14
+ export default {
15
+ title: 'Aidan',
16
+ };
17
+
18
+ export const Testing = {
19
+ render: () => {
20
+ return (
21
+ <div
22
+ style={{
23
+ display: 'flex',
24
+ gap: 'var(--size-4)',
25
+ flexDirection: 'row',
26
+ }}
27
+ >
28
+ <div
29
+ style={{
30
+ flex: 1,
31
+ }}
32
+ >
33
+ <div
34
+ style={{
35
+ border: '1px solid var(--color-border-neutral)',
36
+ borderRadius: 'var(--radius-medium)',
37
+ padding: 'var(--size-16)',
38
+ display: 'flex',
39
+ justifyContent: 'center',
40
+ }}
41
+ >
42
+ <ListItem
43
+ title="System maintenance"
44
+ subtitle="Scheduled downtime"
45
+ inverted
46
+ control={
47
+ <ListItem.IconButton partiallyInteractive>
48
+ <InfoCircle />
49
+ </ListItem.IconButton>
50
+ }
51
+ />
52
+ </div>
53
+ </div>
54
+
55
+ <div
56
+ style={{
57
+ flex: 1,
58
+ }}
59
+ >
60
+ <span>a</span>
61
+ </div>
62
+ </div>
63
+ );
64
+ },
65
+ };
package/src/main.css CHANGED
@@ -27152,7 +27152,6 @@ a[data-toggle="tooltip"] {
27152
27152
  /* Button Styles */
27153
27153
 
27154
27154
  .wds-Button {
27155
- background: yellow !important;
27156
27155
  display: inline-flex;
27157
27156
  flex: none;
27158
27157
  width: auto;