@transferwise/components 0.0.0-experimental-d7dd655 → 0.0.0-experimental-2d87676
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-
|
|
3
|
+
"version": "0.0.0-experimental-2d87676",
|
|
4
4
|
"description": "Neptune React components",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -85,8 +85,8 @@
|
|
|
85
85
|
"storybook": "^10.2.0-alpha.13",
|
|
86
86
|
"storybook-addon-tag-badges": "^3.0.4",
|
|
87
87
|
"storybook-addon-test-codegen": "^3.0.1",
|
|
88
|
-
"@transferwise/less-config": "3.1.2",
|
|
89
88
|
"@transferwise/neptune-css": "14.26.1",
|
|
89
|
+
"@transferwise/less-config": "3.1.2",
|
|
90
90
|
"@wise/components-theming": "1.10.1",
|
|
91
91
|
"@wise/wds-configs": "0.0.0"
|
|
92
92
|
},
|
|
@@ -286,8 +286,11 @@ export const EdgeInstances: Story = {
|
|
|
286
286
|
};
|
|
287
287
|
|
|
288
288
|
/**
|
|
289
|
-
* Like [AvatarView](?path=/docs/content-avatarview--docs#sentiment-awareness), `AvatarLayout` is sentiment-aware and will automatically adjust its colours if wrapped inside the
|
|
289
|
+
* Like [AvatarView](?path=/docs/content-avatarview--docs#sentiment-awareness), `AvatarLayout` is sentiment-aware (note: not all features are supported) and will automatically adjust its colours if wrapped inside the
|
|
290
290
|
* [SentimentSurface](?path=/docs/content-sentimentsurface--docs) component.
|
|
291
|
+
*
|
|
292
|
+
* Features like: `interactive` are not supported.
|
|
293
|
+
* Also `AvatarLayout` isn't supported on `"elevated"` state of `SentimentSurface`.
|
|
291
294
|
*/
|
|
292
295
|
export const SentimentAwareness: Story = {
|
|
293
296
|
parameters: {
|
|
@@ -300,21 +303,19 @@ export const SentimentAwareness: Story = {
|
|
|
300
303
|
render: (args) => (
|
|
301
304
|
<>
|
|
302
305
|
{(['success', 'warning', 'negative', 'neutral', 'proposition'] as const).map((sentiment) =>
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
</SentimentSurface>
|
|
317
|
-
)),
|
|
306
|
+
<SentimentSurface
|
|
307
|
+
key={`${sentiment}-base`}
|
|
308
|
+
sentiment={sentiment}
|
|
309
|
+
emphasis="base"
|
|
310
|
+
className="p-a-1 d-flex"
|
|
311
|
+
style={{ gap: 'var(--size-16)' }}
|
|
312
|
+
>
|
|
313
|
+
<AvatarLayout avatars={[{ asset: <Freeze /> }, { asset: <Freeze /> }]} />
|
|
314
|
+
<AvatarLayout
|
|
315
|
+
orientation="diagonal"
|
|
316
|
+
avatars={[{ asset: <Freeze /> }, { asset: <Freeze /> }]}
|
|
317
|
+
/>
|
|
318
|
+
</SentimentSurface>
|
|
318
319
|
)}
|
|
319
320
|
</>
|
|
320
321
|
),
|
|
@@ -438,8 +438,11 @@ export const Profiles: Story = {
|
|
|
438
438
|
};
|
|
439
439
|
|
|
440
440
|
/**
|
|
441
|
-
* `AvatarView` is sentiment-aware and will automatically adjust its colours if wrapped inside the
|
|
441
|
+
* `AvatarView` is sentiment-aware (note: not all features are supported) and will automatically adjust its colours if wrapped inside the
|
|
442
442
|
* [SentimentSurface](?path=/docs/content-sentimentsurface--docs) component.
|
|
443
|
+
*
|
|
444
|
+
* Features like `online`, `notification`, `selected`, and `interactive` are not supported.
|
|
445
|
+
* Also `AvatarView` isn't supported on `"elevated"` state of `SentimentSurface`.
|
|
443
446
|
*/
|
|
444
447
|
export const SentimentAwareness: Story = {
|
|
445
448
|
parameters: {
|