@transferwise/components 0.0.0-experimental-1d87337 → 0.0.0-experimental-db4a390

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-1d87337",
3
+ "version": "0.0.0-experimental-db4a390",
4
4
  "description": "Neptune React components",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -84,13 +84,13 @@
84
84
  "storybook-addon-tag-badges": "^2.0.2",
85
85
  "storybook-addon-test-codegen": "^2.0.1",
86
86
  "@transferwise/less-config": "3.1.2",
87
- "@transferwise/neptune-css": "0.0.0-experimental-1d87337",
87
+ "@transferwise/neptune-css": "0.0.0-experimental-db4a390",
88
88
  "@wise/components-theming": "1.9.1",
89
89
  "@wise/wds-configs": "0.0.0"
90
90
  },
91
91
  "peerDependencies": {
92
92
  "@transferwise/icons": "^3 || ^4",
93
- "@transferwise/neptune-css": "0.0.0-experimental-1d87337",
93
+ "@transferwise/neptune-css": "0.0.0-experimental-db4a390",
94
94
  "@wise/art": "^2.24.4",
95
95
  "@wise/components-theming": "^1.6.2",
96
96
  "react": ">=18",
@@ -915,40 +915,46 @@ export const AccessibilityAddons: Story = {
915
915
  * colours if wrapped inside the [SentimentSurface](/?path=/docs/content-sentimentsurface--docs) component
916
916
  */
917
917
  export const SentimentAwareness: Story = {
918
- render: () => (
919
- <div style={{ display: 'flex', flexDirection: 'column', gap: '16px' }}>
920
- {(['success', 'warning', 'negative', 'neutral', 'proposition'] as const).map((sentiment) => (
921
- <SentimentSurface
922
- key={sentiment}
923
- sentiment={sentiment}
924
- className="p-a-1"
925
- style={{
926
- color: 'var(--color-sentiment-content-primary)',
927
- backgroundColor: 'var(--color-sentiment-background-surface)',
928
- }}
929
- >
930
- <div style={{ display: 'flex', gap: '8px', alignItems: 'center' }}>
931
- <Button v2>Primary</Button>
932
- <Button v2 priority="secondary">
933
- Secondary
934
- </Button>
935
- <Button v2 priority="secondary-neutral">
936
- Secondary Neutral
937
- </Button>
938
- <Button v2 sentiment="negative">
939
- Negative
940
- </Button>
941
- <Button v2 disabled>
942
- Disabled
943
- </Button>
944
- </div>
945
- </SentimentSurface>
946
- ))}
947
- </div>
948
- ),
918
+ render: (args) => {
919
+ return (
920
+ <>
921
+ {(['success', 'warning', 'negative', 'neutral', 'proposition'] as const).map(
922
+ (sentiment) => (
923
+ <SentimentSurface
924
+ key={sentiment}
925
+ sentiment={sentiment}
926
+ className="p-a-1 d-flex align-items-center"
927
+ style={{ gap: 'var(--size-8)' }}
928
+ >
929
+ <Button v2>Primary</Button>
930
+ <Button v2 priority="secondary">
931
+ Secondary
932
+ </Button>
933
+ <Button v2 priority="secondary-neutral">
934
+ Secondary Neutral
935
+ </Button>
936
+ <Button v2 disabled>
937
+ Disabled
938
+ </Button>
939
+ </SentimentSurface>
940
+ ),
941
+ )}
942
+ </>
943
+ );
944
+ },
949
945
  parameters: {
950
946
  docs: {
951
947
  source: { type: 'dynamic' },
948
+ canvas: {
949
+ sourceState: 'hidden',
950
+ },
952
951
  },
953
952
  },
953
+ decorators: [
954
+ (Story) => (
955
+ <div style={{ display: 'flex', flexDirection: 'column', gap: '16px' }}>
956
+ <Story />
957
+ </div>
958
+ ),
959
+ ],
954
960
  };