@transferwise/components 46.105.2 → 46.105.3

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
@@ -3166,8 +3166,6 @@ html:not([dir="rtl"]) .np-flow-navigation--sm .np-flow-navigation__stepper {
3166
3166
  width: 100%;
3167
3167
  border-radius: 16px;
3168
3168
  border-radius: var(--radius-medium);
3169
- background-color: #ffffff;
3170
- background-color: var(--color-background-screen);
3171
3169
  position: relative;
3172
3170
  padding: 12px 0;
3173
3171
  padding: var(--size-12) 0;
@@ -522,8 +522,6 @@
522
522
  width: 100%;
523
523
  border-radius: 16px;
524
524
  border-radius: var(--radius-medium);
525
- background-color: #ffffff;
526
- background-color: var(--color-background-screen);
527
525
  position: relative;
528
526
  padding: 12px 0;
529
527
  padding: var(--size-12) 0;
@@ -3166,8 +3166,6 @@ html:not([dir="rtl"]) .np-flow-navigation--sm .np-flow-navigation__stepper {
3166
3166
  width: 100%;
3167
3167
  border-radius: 16px;
3168
3168
  border-radius: var(--radius-medium);
3169
- background-color: #ffffff;
3170
- background-color: var(--color-background-screen);
3171
3169
  position: relative;
3172
3170
  padding: 12px 0;
3173
3171
  padding: var(--size-12) 0;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@transferwise/components",
3
- "version": "46.105.2",
3
+ "version": "46.105.3",
4
4
  "description": "Neptune React components",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -522,8 +522,6 @@
522
522
  width: 100%;
523
523
  border-radius: 16px;
524
524
  border-radius: var(--radius-medium);
525
- background-color: #ffffff;
526
- background-color: var(--color-background-screen);
527
525
  position: relative;
528
526
  padding: 12px 0;
529
527
  padding: var(--size-12) 0;
@@ -6,7 +6,6 @@
6
6
  list-style: none;
7
7
  width: 100%;
8
8
  border-radius: var(--radius-medium);
9
- background-color: var(--color-background-screen);
10
9
  position: relative;
11
10
  padding: var(--size-12) 0;
12
11
  container-type: inline-size;
@@ -2,7 +2,15 @@ import { useState } from 'react';
2
2
  import { Title, Subtitle, Description, Stories } from '@storybook/addon-docs/blocks';
3
3
  import { Meta, StoryObj } from '@storybook/react-webpack5';
4
4
  import { action } from 'storybook/actions';
5
- import { InfoCircle, Documents } from '@transferwise/icons';
5
+ import {
6
+ InfoCircle,
7
+ Documents,
8
+ Warning,
9
+ Home,
10
+ Globe,
11
+ People,
12
+ Link as LinkIcon,
13
+ } from '@transferwise/icons';
6
14
  import { lorem10, lorem100, lorem20, lorem5 } from '../../test-utils';
7
15
  import Modal from '../../modal';
8
16
  import Link from '../../link';
@@ -23,7 +31,7 @@ import {
23
31
 
24
32
  export default {
25
33
  component: ListItem,
26
- title: 'Content/ListItem/common scenarios',
34
+ title: 'Content/ListItem/Common Scenarios',
27
35
  tags: ['autodocs'],
28
36
  args: {
29
37
  title: lorem5,
@@ -226,3 +234,112 @@ export const CopyAndPasteWithSnackbar: Story = storySourceWithoutNoise({
226
234
  );
227
235
  },
228
236
  });
237
+
238
+ export const Summary: Story = {
239
+ parameters: {
240
+ docs: {
241
+ canvas: {
242
+ sourceState: 'shown',
243
+ },
244
+ },
245
+ backgrounds: {
246
+ default: 'light',
247
+ values: [
248
+ { name: 'light', value: '#f8f9fa' },
249
+ { name: 'dark', value: '#343a40' },
250
+ ],
251
+ },
252
+ },
253
+ render: () => {
254
+ const listItems = (
255
+ <List>
256
+ <ListItem
257
+ title="System maintenance"
258
+ subtitle="Scheduled downtime notification"
259
+ media={
260
+ <ListItem.AvatarView size={32}>
261
+ <Warning />
262
+ </ListItem.AvatarView>
263
+ }
264
+ control={
265
+ <ListItem.IconButton partiallyInteractive>
266
+ <InfoCircle />
267
+ </ListItem.IconButton>
268
+ }
269
+ />
270
+ <ListItem
271
+ title="One link, one QR code, many uses"
272
+ subtitle="Quick Pay is a unique link and QR code for your business to get paid online and in person."
273
+ media={
274
+ <ListItem.AvatarView size={32}>
275
+ <LinkIcon />
276
+ </ListItem.AvatarView>
277
+ }
278
+ />
279
+ <ListItem
280
+ title="Action required"
281
+ subtitle="Update your payment address"
282
+ media={
283
+ <ListItem.AvatarView size={32}>
284
+ <Home />
285
+ </ListItem.AvatarView>
286
+ }
287
+ additionalInfo={
288
+ <ListItem.AdditionalInfo
289
+ action={{ label: 'Change Address', onClick: () => console.log('hello') }}
290
+ />
291
+ }
292
+ />
293
+ <ListItem
294
+ title="Action required"
295
+ subtitle="Update your payment address"
296
+ media={
297
+ <ListItem.AvatarView size={32}>
298
+ <Home />
299
+ </ListItem.AvatarView>
300
+ }
301
+ additionalInfo={
302
+ <ListItem.AdditionalInfo
303
+ action={{ label: 'Change Address', onClick: () => console.log('hello') }}
304
+ />
305
+ }
306
+ control={
307
+ <ListItem.IconButton partiallyInteractive>
308
+ <InfoCircle />
309
+ </ListItem.IconButton>
310
+ }
311
+ />
312
+ <ListItem
313
+ title="Receive money from around the world"
314
+ media={
315
+ <ListItem.AvatarView size={32}>
316
+ <Globe />
317
+ </ListItem.AvatarView>
318
+ }
319
+ />
320
+ <ListItem
321
+ title="Let customers pay in a currency they trust"
322
+ media={
323
+ <ListItem.AvatarView size={32}>
324
+ <People />
325
+ </ListItem.AvatarView>
326
+ }
327
+ />
328
+ </List>
329
+ );
330
+ return (
331
+ <>
332
+ <div style={{ padding: '24px', width: '450px' }}>{listItems}</div>
333
+ <div
334
+ style={{
335
+ padding: '24px',
336
+ width: '450px',
337
+ backgroundColor: 'var(--color-background-neutral)',
338
+ }}
339
+ >
340
+ {listItems}
341
+ </div>
342
+ </>
343
+ );
344
+ },
345
+ };
package/src/main.css CHANGED
@@ -3166,8 +3166,6 @@ html:not([dir="rtl"]) .np-flow-navigation--sm .np-flow-navigation__stepper {
3166
3166
  width: 100%;
3167
3167
  border-radius: 16px;
3168
3168
  border-radius: var(--radius-medium);
3169
- background-color: #ffffff;
3170
- background-color: var(--color-background-screen);
3171
3169
  position: relative;
3172
3170
  padding: 12px 0;
3173
3171
  padding: var(--size-12) 0;