@transferwise/components 0.0.0-experimental-7124ba8 → 0.0.0-experimental-5d9dbc3

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-7124ba8",
3
+ "version": "0.0.0-experimental-5d9dbc3",
4
4
  "description": "Neptune React components",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -1,6 +1,6 @@
1
1
  import { useState } from 'react';
2
2
  import { Meta, StoryObj } from '@storybook/react-webpack5';
3
- import { MultiCurrency, Plus } from '@transferwise/icons';
3
+ import { Plus } from '@transferwise/icons';
4
4
  import {
5
5
  createSandboxStory,
6
6
  globalScope,
@@ -618,3 +618,37 @@ export const StylingLabels: Story = {
618
618
  );
619
619
  },
620
620
  };
621
+
622
+ export const CustomSubtitleColoring: Story = {
623
+ parameters: {
624
+ controls: {
625
+ disable: true,
626
+ },
627
+ docs: {
628
+ source: {
629
+ code: `<List>
630
+ <ListItem
631
+ title="List item title"
632
+ subtitle={
633
+ <Emphasis text="This is <important>important</important> and <negative>this</negative> is <positive>positive</positive>." />
634
+ }
635
+ control={<ListItem.Button onClick={() => {}}>Click me</ListItem.Button>}
636
+ />
637
+ </List>`,
638
+ },
639
+ },
640
+ },
641
+ render: function Render() {
642
+ return (
643
+ <List>
644
+ <ListItem
645
+ title="List item title"
646
+ subtitle={
647
+ <Emphasis text="This is <important>important</important> and <negative>this</negative> is <positive>positive</positive>." />
648
+ }
649
+ control={<ListItem.Button onClick={() => {}}>Click me</ListItem.Button>}
650
+ />
651
+ </List>
652
+ );
653
+ },
654
+ };