@transferwise/components 0.0.0-experimental-54bf80b → 0.0.0-experimental-d0b30d6

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@transferwise/components",
3
- "version": "0.0.0-experimental-54bf80b",
3
+ "version": "0.0.0-experimental-d0b30d6",
4
4
  "description": "Neptune React components",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -1,4 +1,4 @@
1
- @import "./Button.vars.less";
1
+ @import './Button.vars.less';
2
2
 
3
3
  /* Button Styles */
4
4
  .wds-Button {
@@ -17,9 +17,7 @@
17
17
  border-radius: var(--Button-border-radius);
18
18
  color: var(--Button-color);
19
19
  cursor: pointer;
20
- transition:
21
- color,
22
- background-color var(--Button-transition-duration) var(--Button-transition-easing);
20
+ transition: color, background-color var(--Button-transition-duration) var(--Button-transition-easing);
23
21
 
24
22
  &,
25
23
  &:hover,
@@ -92,7 +90,7 @@
92
90
  &:hover,
93
91
  &:active,
94
92
  &:focus {
95
- .wds-Button-labelText {
93
+ .wds-Button-labelText{
96
94
  text-decoration: underline;
97
95
  text-underline-offset: 3px;
98
96
  text-decoration-thickness: 1px;
@@ -127,15 +125,15 @@
127
125
  &--medium {
128
126
  padding: var(--Button-medium-padding);
129
127
 
130
- &:has(.wds-Button-avatars) {
128
+ &:has(.wds-Button-avatars){
131
129
  padding-inline-start: var(--size-8);
132
130
  }
133
131
 
134
- &:has(.wds-Button-icon--end) {
132
+ &:has(.wds-Button-icon--end){
135
133
  padding-inline-end: var(--size-8);
136
134
  }
137
135
 
138
- .wds-Button-icon--start {
136
+ .wds-Button-icon--start{
139
137
  margin-inline-end: var(--Button-label-gap);
140
138
  }
141
139
  }
@@ -143,15 +141,17 @@
143
141
  &--small {
144
142
  padding: var(--Button-small-padding);
145
143
 
146
- &:has(.wds-Button-icon--start) {
144
+ &:has(.wds-Button-icon--start){
147
145
  padding-inline-start: var(--size-8);
148
146
  }
149
147
 
150
- &:has(.wds-Button-icon--end) {
148
+ &:has(.wds-Button-icon--end){
151
149
  padding-inline-end: var(--size-8);
152
150
  }
153
151
  }
154
152
 
153
+
154
+
155
155
  // Width modifiers
156
156
  &--block {
157
157
  width: 100%;
@@ -169,11 +169,11 @@
169
169
  &-icon {
170
170
  display: inline-block;
171
171
 
172
- &--md {
172
+ &--md{
173
173
  --Button-iconSize: 18px;
174
174
  }
175
175
 
176
- &--sm {
176
+ &--sm{
177
177
  --Button-iconSize: 16px;
178
178
  }
179
179
 
@@ -225,12 +225,7 @@
225
225
  .wds-Button--secondary &,
226
226
  .wds-Button--secondary-neutral &,
227
227
  .wds-Button--tertiary & {
228
- .np-theme-personal:not(
229
- .np-theme-personal--dark,
230
- .np-theme-personal--forest-green,
231
- .np-theme-personal--bright-green
232
- )
233
- & {
228
+ .np-theme-personal:not(.np-theme-personal--dark, .np-theme-personal--forest-green, .np-theme-personal--bright-green) & {
234
229
  --circle-border-color: color-mix(in srgb, var(--Button-color) 12%, transparent);
235
230
  }
236
231
  }
@@ -250,6 +245,7 @@
250
245
  }
251
246
  }
252
247
 
248
+
253
249
  :dir(rtl) {
254
250
  .wds-Button {
255
251
  .tw-icon-chevron-right,
@@ -367,7 +367,7 @@ export const Priority: StoryObj<PreviewStoryArgs> = {
367
367
  return (
368
368
  <>
369
369
  <Button {...props} {...previewProps} v2>
370
- ======== Primary Priority (default)
370
+ Primary Priority (default)
371
371
  </Button>
372
372
  <Button {...props} {...previewProps} v2 priority="secondary">
373
373
  Secondary Priority