@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 +3 -3
- package/src/button/Button.story.tsx +37 -31
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@transferwise/components",
|
|
3
|
-
"version": "0.0.0-experimental-
|
|
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-
|
|
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-
|
|
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
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
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
|
};
|