@transferwise/components 46.80.0 → 46.81.0
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/avatar/Avatar.js +3 -0
- package/build/avatar/Avatar.js.map +1 -1
- package/build/avatar/Avatar.mjs +3 -0
- package/build/avatar/Avatar.mjs.map +1 -1
- package/build/avatarView/AvatarView.js +175 -0
- package/build/avatarView/AvatarView.js.map +1 -0
- package/build/avatarView/AvatarView.mjs +173 -0
- package/build/avatarView/AvatarView.mjs.map +1 -0
- package/build/avatarView/NotificationDot.js +59 -0
- package/build/avatarView/NotificationDot.js.map +1 -0
- package/build/avatarView/NotificationDot.mjs +57 -0
- package/build/avatarView/NotificationDot.mjs.map +1 -0
- package/build/avatarWrapper/AvatarWrapper.js +10 -4
- package/build/avatarWrapper/AvatarWrapper.js.map +1 -1
- package/build/avatarWrapper/AvatarWrapper.mjs +10 -4
- package/build/avatarWrapper/AvatarWrapper.mjs.map +1 -1
- package/build/badge/Badge.js +16 -4
- package/build/badge/Badge.js.map +1 -1
- package/build/badge/Badge.mjs +15 -3
- package/build/badge/Badge.mjs.map +1 -1
- package/build/badge/BadgeAssets.js +60 -0
- package/build/badge/BadgeAssets.js.map +1 -0
- package/build/badge/BadgeAssets.mjs +58 -0
- package/build/badge/BadgeAssets.mjs.map +1 -0
- package/build/common/circle/Circle.js +19 -1
- package/build/common/circle/Circle.js.map +1 -1
- package/build/common/circle/Circle.mjs +19 -1
- package/build/common/circle/Circle.mjs.map +1 -1
- package/build/i18n/zh-HK.json +5 -0
- package/build/i18n/zh-HK.json.js +5 -0
- package/build/i18n/zh-HK.json.js.map +1 -1
- package/build/i18n/zh-HK.json.mjs +5 -0
- package/build/i18n/zh-HK.json.mjs.map +1 -1
- package/build/index.js +18 -13
- package/build/index.js.map +1 -1
- package/build/index.mjs +10 -7
- package/build/index.mjs.map +1 -1
- package/build/main.css +74 -5
- package/build/styles/avatarView/AvatarView.css +36 -0
- package/build/styles/avatarView/NotificationDot.css +20 -0
- package/build/styles/badge/Badge.css +6 -5
- package/build/styles/common/circle/Circle.css +32 -0
- package/build/styles/main.css +74 -5
- package/build/types/avatar/Avatar.d.ts +3 -0
- package/build/types/avatar/Avatar.d.ts.map +1 -1
- package/build/types/avatarView/AvatarView.d.ts +26 -0
- package/build/types/avatarView/AvatarView.d.ts.map +1 -0
- package/build/types/avatarView/NotificationDot.d.ts +8 -0
- package/build/types/avatarView/NotificationDot.d.ts.map +1 -0
- package/build/types/avatarView/index.d.ts +3 -0
- package/build/types/avatarView/index.d.ts.map +1 -0
- package/build/types/avatarWrapper/AvatarWrapper.d.ts +3 -0
- package/build/types/avatarWrapper/AvatarWrapper.d.ts.map +1 -1
- package/build/types/badge/Badge.d.ts +9 -4
- package/build/types/badge/Badge.d.ts.map +1 -1
- package/build/types/badge/BadgeAssets.d.ts +14 -0
- package/build/types/badge/BadgeAssets.d.ts.map +1 -0
- package/build/types/badge/index.d.ts +2 -0
- package/build/types/badge/index.d.ts.map +1 -1
- package/build/types/common/circle/Circle.d.ts +2 -0
- package/build/types/common/circle/Circle.d.ts.map +1 -1
- package/build/types/index.d.ts +3 -1
- package/build/types/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/avatar/Avatar.tsx +3 -0
- package/src/avatarView/AvatarView.css +36 -0
- package/src/avatarView/AvatarView.less +27 -0
- package/src/avatarView/AvatarView.story.tsx +467 -0
- package/src/avatarView/AvatarView.tsx +171 -0
- package/src/avatarView/NotificationDot.css +20 -0
- package/src/avatarView/NotificationDot.less +24 -0
- package/src/avatarView/NotificationDot.tsx +35 -0
- package/src/avatarView/index.ts +2 -0
- package/src/avatarWrapper/AvatarWrapper.story.tsx +19 -0
- package/src/avatarWrapper/AvatarWrapper.tsx +3 -0
- package/src/badge/Badge.css +6 -5
- package/src/badge/Badge.less +4 -3
- package/src/badge/Badge.tsx +20 -6
- package/src/badge/BadgeAssets.tsx +61 -0
- package/src/badge/index.ts +3 -0
- package/src/circularButton/CircularButton.spec.tsx +0 -36
- package/src/common/circle/Circle.css +32 -0
- package/src/common/circle/Circle.less +35 -0
- package/src/common/circle/Circle.tsx +24 -1
- package/src/flowNavigation/FlowNavigation.story.tsx +19 -52
- package/src/i18n/zh-HK.json +5 -0
- package/src/index.ts +3 -0
- package/src/listItem/ListItem.story.tsx +5 -47
- package/src/main.css +74 -5
- package/src/main.less +1 -0
- package/src/overlayHeader/OverlayHeader.story.tsx +6 -14
- package/src/circularButton/__snapshots__/CircularButton.spec.tsx.snap +0 -381
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
/* eslint-disable react/jsx-child-element-spacing */
|
|
2
2
|
|
|
3
3
|
import { action } from '@storybook/addon-actions';
|
|
4
|
-
import { Documents } from '@transferwise/icons';
|
|
4
|
+
import { Documents, FastFlag } from '@transferwise/icons';
|
|
5
5
|
import { ComponentProps } from 'react';
|
|
6
6
|
|
|
7
7
|
import ActionButton from '../actionButton/ActionButton';
|
|
8
|
-
import
|
|
9
|
-
import Badge from '../badge';
|
|
8
|
+
import AvatarView from '../avatarView';
|
|
10
9
|
import Info from '../info';
|
|
11
10
|
import Title from '../title/Title';
|
|
12
|
-
|
|
13
11
|
import ListItem, { List } from '.';
|
|
14
12
|
|
|
15
13
|
export default {
|
|
@@ -40,17 +38,7 @@ export const Variants = () => {
|
|
|
40
38
|
<div className="m-t-4 m-b-2">
|
|
41
39
|
<Title type="title-body">With Icon Avatar</Title>
|
|
42
40
|
<List>
|
|
43
|
-
<Template
|
|
44
|
-
media={
|
|
45
|
-
<Avatar>
|
|
46
|
-
<img
|
|
47
|
-
style={{ width: 32, height: 32 }}
|
|
48
|
-
src="https://wise.com/public-resources/assets/balances/savings-emoji/google/✈️.png"
|
|
49
|
-
alt=""
|
|
50
|
-
/>
|
|
51
|
-
</Avatar>
|
|
52
|
-
}
|
|
53
|
-
/>
|
|
41
|
+
<Template media={<AvatarView imgSrc="../tapestry-01.png" />} />
|
|
54
42
|
</List>
|
|
55
43
|
</div>
|
|
56
44
|
<div className="m-t-4 m-b-2">
|
|
@@ -59,22 +47,7 @@ export const Variants = () => {
|
|
|
59
47
|
<Template
|
|
60
48
|
title="Sandra Pepper"
|
|
61
49
|
value="Personal account"
|
|
62
|
-
media={
|
|
63
|
-
<Badge
|
|
64
|
-
badge={
|
|
65
|
-
<img
|
|
66
|
-
src="https://wise.com/public-resources/assets/brand/fast_flag_badge_personal.svg"
|
|
67
|
-
alt=""
|
|
68
|
-
height="24px"
|
|
69
|
-
width="24px"
|
|
70
|
-
/>
|
|
71
|
-
}
|
|
72
|
-
>
|
|
73
|
-
<Avatar type="initials" size="md">
|
|
74
|
-
<span aria-hidden>SP</span>
|
|
75
|
-
</Avatar>
|
|
76
|
-
</Badge>
|
|
77
|
-
}
|
|
50
|
+
media={<AvatarView profileName="Super Pepa" badge={{ icon: <FastFlag /> }} />}
|
|
78
51
|
/>
|
|
79
52
|
</List>
|
|
80
53
|
</div>
|
|
@@ -84,22 +57,7 @@ export const Variants = () => {
|
|
|
84
57
|
<Template
|
|
85
58
|
title="Account holder"
|
|
86
59
|
value="Sandra Pepper"
|
|
87
|
-
media={
|
|
88
|
-
<Badge
|
|
89
|
-
badge={
|
|
90
|
-
<img
|
|
91
|
-
src="https://wise.com/public-resources/assets/brand/fast_flag_badge_personal.svg"
|
|
92
|
-
alt=""
|
|
93
|
-
height="24px"
|
|
94
|
-
width="24px"
|
|
95
|
-
/>
|
|
96
|
-
}
|
|
97
|
-
>
|
|
98
|
-
<Avatar type="initials" size="md">
|
|
99
|
-
<span aria-hidden>SP</span>
|
|
100
|
-
</Avatar>
|
|
101
|
-
</Badge>
|
|
102
|
-
}
|
|
60
|
+
media={<AvatarView profileName="Super Pepa" badge={{ icon: <FastFlag /> }} />}
|
|
103
61
|
action={<ActionButton>Share details</ActionButton>}
|
|
104
62
|
/>
|
|
105
63
|
</List>
|
package/src/main.css
CHANGED
|
@@ -469,6 +469,42 @@ div.critical-comms .critical-comms-body {
|
|
|
469
469
|
.np-theme-personal .tw-avatar--outlined:not(.disabled):not(:disabled):hover {
|
|
470
470
|
border-color: var(--color-interactive-primary-hover);
|
|
471
471
|
}
|
|
472
|
+
.np-notification-dot {
|
|
473
|
+
--np-notification-dot-size: 14px;
|
|
474
|
+
position: relative;
|
|
475
|
+
display: inline-block;
|
|
476
|
+
}
|
|
477
|
+
.np-notification-dot-mask {
|
|
478
|
+
-webkit-mask-image: radial-gradient(circle at bottom calc(100% - (var(--np-notification-dot-size) / 2)) left calc(100% - (var(--np-notification-dot-size) / 2)), transparent 0, transparent calc(var(--np-notification-dot-size) / 2 + var(--np-notification-dot-offset)), black 0);
|
|
479
|
+
mask-image: radial-gradient(circle at bottom calc(100% - (var(--np-notification-dot-size) / 2)) left calc(100% - (var(--np-notification-dot-size) / 2)), transparent 0, transparent calc(var(--np-notification-dot-size) / 2 + var(--np-notification-dot-offset)), black 0);
|
|
480
|
+
-webkit-mask-image: radial-gradient(circle at bottom calc(100% - calc(var(--np-notification-dot-size) / 2)) left calc(100% - calc(var(--np-notification-dot-size) / 2)), transparent 0, transparent calc(var(--np-notification-dot-size) / 2 + var(--np-notification-dot-offset)), black 0);
|
|
481
|
+
mask-image: radial-gradient(circle at bottom calc(100% - calc(var(--np-notification-dot-size) / 2)) left calc(100% - calc(var(--np-notification-dot-size) / 2)), transparent 0, transparent calc(var(--np-notification-dot-size) / 2 + var(--np-notification-dot-offset)), black 0);
|
|
482
|
+
}
|
|
483
|
+
.np-notification-dot-badge {
|
|
484
|
+
position: absolute;
|
|
485
|
+
width: var(--np-notification-dot-size);
|
|
486
|
+
height: var(--np-notification-dot-size);
|
|
487
|
+
background-color: var(--color-sentiment-negative);
|
|
488
|
+
border-radius: 9999px;
|
|
489
|
+
border-radius: var(--radius-full);
|
|
490
|
+
right: 0;
|
|
491
|
+
}
|
|
492
|
+
.np-avatar-view .np-avatar-view-content {
|
|
493
|
+
color: var(--color-interactive-primary);
|
|
494
|
+
}
|
|
495
|
+
.np-avatar-view-interactive {
|
|
496
|
+
cursor: pointer;
|
|
497
|
+
}
|
|
498
|
+
.np-avatar-view-interactive .np-circle {
|
|
499
|
+
background-color: rgba(134,167,189,0.10196);
|
|
500
|
+
background-color: var(--color-background-neutral);
|
|
501
|
+
}
|
|
502
|
+
.np-avatar-view-non-interactive .np-circle {
|
|
503
|
+
background-color: transparent;
|
|
504
|
+
}
|
|
505
|
+
.np-avatar-view-non-interactive .np-avatar-view-content .wds-flag {
|
|
506
|
+
box-shadow: none;
|
|
507
|
+
}
|
|
472
508
|
.tw-badge {
|
|
473
509
|
position: relative;
|
|
474
510
|
display: inline-block;
|
|
@@ -476,6 +512,7 @@ div.critical-comms .critical-comms-body {
|
|
|
476
512
|
--badge-mask: 2px;
|
|
477
513
|
--badge-mask-offset: calc(var(--badge-size) / 2);
|
|
478
514
|
--badge-border-color: rgba(255, 255, 255, 0.08);
|
|
515
|
+
--badge-content-position: 0px;
|
|
479
516
|
}
|
|
480
517
|
.tw-badge.tw-badge-lg {
|
|
481
518
|
--badge-size: 24px;
|
|
@@ -485,8 +522,8 @@ div.critical-comms .critical-comms-body {
|
|
|
485
522
|
--badge-border-color: rgba(0, 0, 0, 0.08);
|
|
486
523
|
}
|
|
487
524
|
.tw-badge > .tw-badge__children {
|
|
488
|
-
-webkit-mask-image: radial-gradient(circle at top calc(100% - var(--badge-mask-offset)) left calc(100% - var(--badge-mask-offset)), transparent 0, transparent calc(var(--badge-size) / 2 + var(--badge-mask)), black calc(var(--badge-size) / 2 + var(--badge-mask) + 0.5px));
|
|
489
|
-
mask-image: radial-gradient(circle at top calc(100% - var(--badge-mask-offset)) left calc(100% - var(--badge-mask-offset)), transparent 0, transparent calc(var(--badge-size) / 2 + var(--badge-mask)), black calc(var(--badge-size) / 2 + var(--badge-mask) + 0.5px));
|
|
525
|
+
-webkit-mask-image: radial-gradient(circle at top calc(100% - var(--badge-mask-offset) - var(--badge-content-position)) left calc(100% - var(--badge-mask-offset) - var(--badge-content-position)), transparent 0, transparent calc(var(--badge-size) / 2 + var(--badge-mask)), black calc(var(--badge-size) / 2 + var(--badge-mask) + 0.5px));
|
|
526
|
+
mask-image: radial-gradient(circle at top calc(100% - var(--badge-mask-offset) - var(--badge-content-position)) left calc(100% - var(--badge-mask-offset) - var(--badge-content-position)), transparent 0, transparent calc(var(--badge-size) / 2 + var(--badge-mask)), black calc(var(--badge-size) / 2 + var(--badge-mask) + 0.5px));
|
|
490
527
|
}
|
|
491
528
|
[dir="rtl"] .tw-badge > .tw-badge__children {
|
|
492
529
|
-webkit-mask-image: radial-gradient(circle at top calc(100% - var(--badge-mask-offset)) right calc(100% - var(--badge-mask-offset)), transparent 0, transparent calc(var(--badge-size) / 2 + var(--badge-mask)), black calc(var(--badge-size) / 2 + var(--badge-mask) + 0.5px));
|
|
@@ -496,8 +533,8 @@ div.critical-comms .critical-comms-body {
|
|
|
496
533
|
position: absolute;
|
|
497
534
|
width: var(--badge-size);
|
|
498
535
|
height: var(--badge-size);
|
|
499
|
-
bottom:
|
|
500
|
-
right:
|
|
536
|
+
bottom: var(--badge-content-position);
|
|
537
|
+
right: var(--badge-content-position);
|
|
501
538
|
box-sizing: border-box;
|
|
502
539
|
border-radius: 50%;
|
|
503
540
|
text-align: center;
|
|
@@ -510,7 +547,7 @@ div.critical-comms .critical-comms-body {
|
|
|
510
547
|
user-select: none;
|
|
511
548
|
}
|
|
512
549
|
[dir="rtl"] .tw-badge > .tw-badge__content {
|
|
513
|
-
left:
|
|
550
|
+
left: var(--badge-content-position);
|
|
514
551
|
right: auto;
|
|
515
552
|
right: initial;
|
|
516
553
|
}
|
|
@@ -1211,11 +1248,43 @@ div.critical-comms .critical-comms-body {
|
|
|
1211
1248
|
width: var(--circle-size);
|
|
1212
1249
|
height: var(--circle-size);
|
|
1213
1250
|
flex-shrink: 0;
|
|
1251
|
+
--circle-border-color: var(--color-border-neutral);
|
|
1252
|
+
--circle-border-width: 1px;
|
|
1253
|
+
font-size: var(--circle-font-size);
|
|
1254
|
+
font-weight: 600;
|
|
1255
|
+
font-weight: var(--font-weight-semi-bold);
|
|
1256
|
+
line-height: 1;
|
|
1257
|
+
}
|
|
1258
|
+
.np-circle .np-display {
|
|
1259
|
+
font-size: var(--circle-font-size);
|
|
1214
1260
|
}
|
|
1215
1261
|
.np-circle .tw-icon > svg {
|
|
1216
1262
|
height: var(--circle-icon-size);
|
|
1217
1263
|
width: var(--circle-icon-size);
|
|
1218
1264
|
}
|
|
1265
|
+
.np-circle img,
|
|
1266
|
+
.np-circle .wds-flag {
|
|
1267
|
+
border-radius: 9999px;
|
|
1268
|
+
border-radius: var(--radius-full);
|
|
1269
|
+
width: 100%;
|
|
1270
|
+
height: 100%;
|
|
1271
|
+
-o-object-fit: cover;
|
|
1272
|
+
object-fit: cover;
|
|
1273
|
+
}
|
|
1274
|
+
.np-circle-border {
|
|
1275
|
+
position: relative;
|
|
1276
|
+
}
|
|
1277
|
+
.np-circle-border::after {
|
|
1278
|
+
content: "";
|
|
1279
|
+
position: absolute;
|
|
1280
|
+
top: 0;
|
|
1281
|
+
left: 0;
|
|
1282
|
+
width: 100%;
|
|
1283
|
+
height: 100%;
|
|
1284
|
+
border-radius: 9999px;
|
|
1285
|
+
border-radius: var(--radius-full);
|
|
1286
|
+
box-shadow: inset 0 0 0 var(--circle-border-width) var(--circle-border-color);
|
|
1287
|
+
}
|
|
1219
1288
|
.np-bottom-sheet {
|
|
1220
1289
|
border-radius: 10px 10px 0 0;
|
|
1221
1290
|
}
|
package/src/main.less
CHANGED
|
@@ -2,9 +2,8 @@ import { action } from '@storybook/addon-actions';
|
|
|
2
2
|
import { select, text } from '@storybook/addon-knobs';
|
|
3
3
|
import { Person as ProfileIcon, Briefcase as BriefcaseIcon } from '@transferwise/icons';
|
|
4
4
|
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import { ProfileType, Size } from '../common';
|
|
5
|
+
import AvatarView from '../avatarView';
|
|
6
|
+
import { ProfileType } from '../common';
|
|
8
7
|
import Logo from '../logo';
|
|
9
8
|
|
|
10
9
|
import OverlayHeader from './OverlayHeader';
|
|
@@ -29,30 +28,23 @@ export const Basic = () => {
|
|
|
29
28
|
return (
|
|
30
29
|
<OverlayHeader
|
|
31
30
|
logo={<Logo />}
|
|
32
|
-
avatar={
|
|
33
|
-
<Avatar type={AvatarType.ICON} size={Size.MEDIUM}>
|
|
34
|
-
{avatarProfiles[showAvatar]}
|
|
35
|
-
</Avatar>
|
|
36
|
-
}
|
|
31
|
+
avatar={<AvatarView>{avatarProfiles[showAvatar]}</AvatarView>}
|
|
37
32
|
onClose={action('Close clicked')}
|
|
38
33
|
/>
|
|
39
34
|
);
|
|
40
35
|
};
|
|
41
36
|
|
|
42
37
|
export const WithAvatarWrapper = () => {
|
|
43
|
-
const avatarURL = text(
|
|
44
|
-
'avatarURL',
|
|
45
|
-
'https://wise.com/web-art/assets/illustrations/heart-small@2x.webp',
|
|
46
|
-
);
|
|
38
|
+
const avatarURL = text('avatarURL', '../tapestry-01.png');
|
|
47
39
|
const profileType = select(
|
|
48
40
|
'profileType',
|
|
49
|
-
|
|
41
|
+
[ProfileType.PERSONAL, ProfileType.BUSINESS],
|
|
50
42
|
undefined,
|
|
51
43
|
);
|
|
52
44
|
return (
|
|
53
45
|
<OverlayHeader
|
|
54
46
|
logo={<Logo />}
|
|
55
|
-
avatar={<
|
|
47
|
+
avatar={<AvatarView imgSrc={avatarURL} profileType={profileType} />}
|
|
56
48
|
onClose={action('Close clicked')}
|
|
57
49
|
/>
|
|
58
50
|
);
|
|
@@ -1,381 +0,0 @@
|
|
|
1
|
-
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
-
|
|
3
|
-
exports[`CircularButton defaults renders a button of type accent and priority primary 1`] = `
|
|
4
|
-
<div>
|
|
5
|
-
<label
|
|
6
|
-
class="np-circular-btn primary accent"
|
|
7
|
-
>
|
|
8
|
-
<input
|
|
9
|
-
aria-label="Add money"
|
|
10
|
-
class="np-circle d-flex align-items-center justify-content-center btn np-btn m-b-1 btn-accent btn-priority-1"
|
|
11
|
-
style="--circle-size: var(--size-56); --circle-icon-size: 28px;"
|
|
12
|
-
type="button"
|
|
13
|
-
/>
|
|
14
|
-
<span
|
|
15
|
-
class="tw-icon tw-icon-plus "
|
|
16
|
-
data-testid="plus-icon"
|
|
17
|
-
>
|
|
18
|
-
<svg
|
|
19
|
-
aria-hidden="true"
|
|
20
|
-
fill="currentColor"
|
|
21
|
-
focusable="false"
|
|
22
|
-
height="24"
|
|
23
|
-
role="none"
|
|
24
|
-
viewBox="0 0 24 24"
|
|
25
|
-
width="24"
|
|
26
|
-
>
|
|
27
|
-
<path
|
|
28
|
-
d="M22.286 11.143h-9.429V1.715h-1.714v9.428H1.714v1.715h9.429v9.428h1.714v-9.428h9.429v-1.715Z"
|
|
29
|
-
/>
|
|
30
|
-
</svg>
|
|
31
|
-
</span>
|
|
32
|
-
<span
|
|
33
|
-
class="np-text-body-default-bold np-circular-btn__label"
|
|
34
|
-
>
|
|
35
|
-
Add money
|
|
36
|
-
</span>
|
|
37
|
-
</label>
|
|
38
|
-
</div>
|
|
39
|
-
`;
|
|
40
|
-
|
|
41
|
-
exports[`CircularButton priorities renders primary buttons 1`] = `
|
|
42
|
-
<div>
|
|
43
|
-
<label
|
|
44
|
-
class="np-circular-btn primary accent"
|
|
45
|
-
>
|
|
46
|
-
<input
|
|
47
|
-
aria-label="Add money"
|
|
48
|
-
class="np-circle d-flex align-items-center justify-content-center btn np-btn m-b-1 btn-accent btn-priority-1"
|
|
49
|
-
style="--circle-size: var(--size-56); --circle-icon-size: 28px;"
|
|
50
|
-
type="button"
|
|
51
|
-
/>
|
|
52
|
-
<span
|
|
53
|
-
class="tw-icon tw-icon-plus "
|
|
54
|
-
data-testid="plus-icon"
|
|
55
|
-
>
|
|
56
|
-
<svg
|
|
57
|
-
aria-hidden="true"
|
|
58
|
-
fill="currentColor"
|
|
59
|
-
focusable="false"
|
|
60
|
-
height="24"
|
|
61
|
-
role="none"
|
|
62
|
-
viewBox="0 0 24 24"
|
|
63
|
-
width="24"
|
|
64
|
-
>
|
|
65
|
-
<path
|
|
66
|
-
d="M22.286 11.143h-9.429V1.715h-1.714v9.428H1.714v1.715h9.429v9.428h1.714v-9.428h9.429v-1.715Z"
|
|
67
|
-
/>
|
|
68
|
-
</svg>
|
|
69
|
-
</span>
|
|
70
|
-
<span
|
|
71
|
-
class="np-text-body-default-bold np-circular-btn__label"
|
|
72
|
-
>
|
|
73
|
-
Add money
|
|
74
|
-
</span>
|
|
75
|
-
</label>
|
|
76
|
-
</div>
|
|
77
|
-
`;
|
|
78
|
-
|
|
79
|
-
exports[`CircularButton priorities renders primary buttons 2`] = `
|
|
80
|
-
<div>
|
|
81
|
-
<label
|
|
82
|
-
class="np-circular-btn primary positive"
|
|
83
|
-
>
|
|
84
|
-
<input
|
|
85
|
-
aria-label="Add money"
|
|
86
|
-
class="np-circle d-flex align-items-center justify-content-center btn np-btn m-b-1 btn-positive btn-priority-1"
|
|
87
|
-
style="--circle-size: var(--size-56); --circle-icon-size: 28px;"
|
|
88
|
-
type="button"
|
|
89
|
-
/>
|
|
90
|
-
<span
|
|
91
|
-
class="tw-icon tw-icon-plus "
|
|
92
|
-
data-testid="plus-icon"
|
|
93
|
-
>
|
|
94
|
-
<svg
|
|
95
|
-
aria-hidden="true"
|
|
96
|
-
fill="currentColor"
|
|
97
|
-
focusable="false"
|
|
98
|
-
height="24"
|
|
99
|
-
role="none"
|
|
100
|
-
viewBox="0 0 24 24"
|
|
101
|
-
width="24"
|
|
102
|
-
>
|
|
103
|
-
<path
|
|
104
|
-
d="M22.286 11.143h-9.429V1.715h-1.714v9.428H1.714v1.715h9.429v9.428h1.714v-9.428h9.429v-1.715Z"
|
|
105
|
-
/>
|
|
106
|
-
</svg>
|
|
107
|
-
</span>
|
|
108
|
-
<span
|
|
109
|
-
class="np-text-body-default-bold np-circular-btn__label"
|
|
110
|
-
>
|
|
111
|
-
Add money
|
|
112
|
-
</span>
|
|
113
|
-
</label>
|
|
114
|
-
</div>
|
|
115
|
-
`;
|
|
116
|
-
|
|
117
|
-
exports[`CircularButton priorities renders primary buttons 3`] = `
|
|
118
|
-
<div>
|
|
119
|
-
<label
|
|
120
|
-
class="np-circular-btn primary negative"
|
|
121
|
-
>
|
|
122
|
-
<input
|
|
123
|
-
aria-label="Add money"
|
|
124
|
-
class="np-circle d-flex align-items-center justify-content-center btn np-btn m-b-1 btn-negative btn-priority-1"
|
|
125
|
-
style="--circle-size: var(--size-56); --circle-icon-size: 28px;"
|
|
126
|
-
type="button"
|
|
127
|
-
/>
|
|
128
|
-
<span
|
|
129
|
-
class="tw-icon tw-icon-plus "
|
|
130
|
-
data-testid="plus-icon"
|
|
131
|
-
>
|
|
132
|
-
<svg
|
|
133
|
-
aria-hidden="true"
|
|
134
|
-
fill="currentColor"
|
|
135
|
-
focusable="false"
|
|
136
|
-
height="24"
|
|
137
|
-
role="none"
|
|
138
|
-
viewBox="0 0 24 24"
|
|
139
|
-
width="24"
|
|
140
|
-
>
|
|
141
|
-
<path
|
|
142
|
-
d="M22.286 11.143h-9.429V1.715h-1.714v9.428H1.714v1.715h9.429v9.428h1.714v-9.428h9.429v-1.715Z"
|
|
143
|
-
/>
|
|
144
|
-
</svg>
|
|
145
|
-
</span>
|
|
146
|
-
<span
|
|
147
|
-
class="np-text-body-default-bold np-circular-btn__label"
|
|
148
|
-
>
|
|
149
|
-
Add money
|
|
150
|
-
</span>
|
|
151
|
-
</label>
|
|
152
|
-
</div>
|
|
153
|
-
`;
|
|
154
|
-
|
|
155
|
-
exports[`CircularButton priorities renders secondary buttons 1`] = `
|
|
156
|
-
<div>
|
|
157
|
-
<label
|
|
158
|
-
class="np-circular-btn secondary accent"
|
|
159
|
-
>
|
|
160
|
-
<input
|
|
161
|
-
aria-label="Add money"
|
|
162
|
-
class="np-circle d-flex align-items-center justify-content-center btn np-btn m-b-1 btn-accent btn-priority-2"
|
|
163
|
-
style="--circle-size: var(--size-56); --circle-icon-size: 28px;"
|
|
164
|
-
type="button"
|
|
165
|
-
/>
|
|
166
|
-
<span
|
|
167
|
-
class="tw-icon tw-icon-plus "
|
|
168
|
-
data-testid="plus-icon"
|
|
169
|
-
>
|
|
170
|
-
<svg
|
|
171
|
-
aria-hidden="true"
|
|
172
|
-
fill="currentColor"
|
|
173
|
-
focusable="false"
|
|
174
|
-
height="24"
|
|
175
|
-
role="none"
|
|
176
|
-
viewBox="0 0 24 24"
|
|
177
|
-
width="24"
|
|
178
|
-
>
|
|
179
|
-
<path
|
|
180
|
-
d="M22.286 11.143h-9.429V1.715h-1.714v9.428H1.714v1.715h9.429v9.428h1.714v-9.428h9.429v-1.715Z"
|
|
181
|
-
/>
|
|
182
|
-
</svg>
|
|
183
|
-
</span>
|
|
184
|
-
<span
|
|
185
|
-
class="np-text-body-default-bold np-circular-btn__label"
|
|
186
|
-
>
|
|
187
|
-
Add money
|
|
188
|
-
</span>
|
|
189
|
-
</label>
|
|
190
|
-
</div>
|
|
191
|
-
`;
|
|
192
|
-
|
|
193
|
-
exports[`CircularButton priorities renders secondary buttons 2`] = `
|
|
194
|
-
<div>
|
|
195
|
-
<label
|
|
196
|
-
class="np-circular-btn secondary positive"
|
|
197
|
-
>
|
|
198
|
-
<input
|
|
199
|
-
aria-label="Add money"
|
|
200
|
-
class="np-circle d-flex align-items-center justify-content-center btn np-btn m-b-1 btn-positive btn-priority-2"
|
|
201
|
-
style="--circle-size: var(--size-56); --circle-icon-size: 28px;"
|
|
202
|
-
type="button"
|
|
203
|
-
/>
|
|
204
|
-
<span
|
|
205
|
-
class="tw-icon tw-icon-plus "
|
|
206
|
-
data-testid="plus-icon"
|
|
207
|
-
>
|
|
208
|
-
<svg
|
|
209
|
-
aria-hidden="true"
|
|
210
|
-
fill="currentColor"
|
|
211
|
-
focusable="false"
|
|
212
|
-
height="24"
|
|
213
|
-
role="none"
|
|
214
|
-
viewBox="0 0 24 24"
|
|
215
|
-
width="24"
|
|
216
|
-
>
|
|
217
|
-
<path
|
|
218
|
-
d="M22.286 11.143h-9.429V1.715h-1.714v9.428H1.714v1.715h9.429v9.428h1.714v-9.428h9.429v-1.715Z"
|
|
219
|
-
/>
|
|
220
|
-
</svg>
|
|
221
|
-
</span>
|
|
222
|
-
<span
|
|
223
|
-
class="np-text-body-default-bold np-circular-btn__label"
|
|
224
|
-
>
|
|
225
|
-
Add money
|
|
226
|
-
</span>
|
|
227
|
-
</label>
|
|
228
|
-
</div>
|
|
229
|
-
`;
|
|
230
|
-
|
|
231
|
-
exports[`CircularButton priorities renders secondary buttons 3`] = `
|
|
232
|
-
<div>
|
|
233
|
-
<label
|
|
234
|
-
class="np-circular-btn secondary negative"
|
|
235
|
-
>
|
|
236
|
-
<input
|
|
237
|
-
aria-label="Add money"
|
|
238
|
-
class="np-circle d-flex align-items-center justify-content-center btn np-btn m-b-1 btn-negative btn-priority-2"
|
|
239
|
-
style="--circle-size: var(--size-56); --circle-icon-size: 28px;"
|
|
240
|
-
type="button"
|
|
241
|
-
/>
|
|
242
|
-
<span
|
|
243
|
-
class="tw-icon tw-icon-plus "
|
|
244
|
-
data-testid="plus-icon"
|
|
245
|
-
>
|
|
246
|
-
<svg
|
|
247
|
-
aria-hidden="true"
|
|
248
|
-
fill="currentColor"
|
|
249
|
-
focusable="false"
|
|
250
|
-
height="24"
|
|
251
|
-
role="none"
|
|
252
|
-
viewBox="0 0 24 24"
|
|
253
|
-
width="24"
|
|
254
|
-
>
|
|
255
|
-
<path
|
|
256
|
-
d="M22.286 11.143h-9.429V1.715h-1.714v9.428H1.714v1.715h9.429v9.428h1.714v-9.428h9.429v-1.715Z"
|
|
257
|
-
/>
|
|
258
|
-
</svg>
|
|
259
|
-
</span>
|
|
260
|
-
<span
|
|
261
|
-
class="np-text-body-default-bold np-circular-btn__label"
|
|
262
|
-
>
|
|
263
|
-
Add money
|
|
264
|
-
</span>
|
|
265
|
-
</label>
|
|
266
|
-
</div>
|
|
267
|
-
`;
|
|
268
|
-
|
|
269
|
-
exports[`CircularButton types renders accent buttons 1`] = `
|
|
270
|
-
<div>
|
|
271
|
-
<label
|
|
272
|
-
class="np-circular-btn primary accent"
|
|
273
|
-
>
|
|
274
|
-
<input
|
|
275
|
-
aria-label="Add money"
|
|
276
|
-
class="np-circle d-flex align-items-center justify-content-center btn np-btn m-b-1 btn-accent btn-priority-1"
|
|
277
|
-
style="--circle-size: var(--size-56); --circle-icon-size: 28px;"
|
|
278
|
-
type="button"
|
|
279
|
-
/>
|
|
280
|
-
<span
|
|
281
|
-
class="tw-icon tw-icon-plus "
|
|
282
|
-
data-testid="plus-icon"
|
|
283
|
-
>
|
|
284
|
-
<svg
|
|
285
|
-
aria-hidden="true"
|
|
286
|
-
fill="currentColor"
|
|
287
|
-
focusable="false"
|
|
288
|
-
height="24"
|
|
289
|
-
role="none"
|
|
290
|
-
viewBox="0 0 24 24"
|
|
291
|
-
width="24"
|
|
292
|
-
>
|
|
293
|
-
<path
|
|
294
|
-
d="M22.286 11.143h-9.429V1.715h-1.714v9.428H1.714v1.715h9.429v9.428h1.714v-9.428h9.429v-1.715Z"
|
|
295
|
-
/>
|
|
296
|
-
</svg>
|
|
297
|
-
</span>
|
|
298
|
-
<span
|
|
299
|
-
class="np-text-body-default-bold np-circular-btn__label"
|
|
300
|
-
>
|
|
301
|
-
Add money
|
|
302
|
-
</span>
|
|
303
|
-
</label>
|
|
304
|
-
</div>
|
|
305
|
-
`;
|
|
306
|
-
|
|
307
|
-
exports[`CircularButton types renders negative buttons 1`] = `
|
|
308
|
-
<div>
|
|
309
|
-
<label
|
|
310
|
-
class="np-circular-btn primary negative"
|
|
311
|
-
>
|
|
312
|
-
<input
|
|
313
|
-
aria-label="Add money"
|
|
314
|
-
class="np-circle d-flex align-items-center justify-content-center btn np-btn m-b-1 btn-negative btn-priority-1"
|
|
315
|
-
style="--circle-size: var(--size-56); --circle-icon-size: 28px;"
|
|
316
|
-
type="button"
|
|
317
|
-
/>
|
|
318
|
-
<span
|
|
319
|
-
class="tw-icon tw-icon-plus "
|
|
320
|
-
data-testid="plus-icon"
|
|
321
|
-
>
|
|
322
|
-
<svg
|
|
323
|
-
aria-hidden="true"
|
|
324
|
-
fill="currentColor"
|
|
325
|
-
focusable="false"
|
|
326
|
-
height="24"
|
|
327
|
-
role="none"
|
|
328
|
-
viewBox="0 0 24 24"
|
|
329
|
-
width="24"
|
|
330
|
-
>
|
|
331
|
-
<path
|
|
332
|
-
d="M22.286 11.143h-9.429V1.715h-1.714v9.428H1.714v1.715h9.429v9.428h1.714v-9.428h9.429v-1.715Z"
|
|
333
|
-
/>
|
|
334
|
-
</svg>
|
|
335
|
-
</span>
|
|
336
|
-
<span
|
|
337
|
-
class="np-text-body-default-bold np-circular-btn__label"
|
|
338
|
-
>
|
|
339
|
-
Add money
|
|
340
|
-
</span>
|
|
341
|
-
</label>
|
|
342
|
-
</div>
|
|
343
|
-
`;
|
|
344
|
-
|
|
345
|
-
exports[`CircularButton types renders positive buttons 1`] = `
|
|
346
|
-
<div>
|
|
347
|
-
<label
|
|
348
|
-
class="np-circular-btn primary positive"
|
|
349
|
-
>
|
|
350
|
-
<input
|
|
351
|
-
aria-label="Add money"
|
|
352
|
-
class="np-circle d-flex align-items-center justify-content-center btn np-btn m-b-1 btn-positive btn-priority-1"
|
|
353
|
-
style="--circle-size: var(--size-56); --circle-icon-size: 28px;"
|
|
354
|
-
type="button"
|
|
355
|
-
/>
|
|
356
|
-
<span
|
|
357
|
-
class="tw-icon tw-icon-plus "
|
|
358
|
-
data-testid="plus-icon"
|
|
359
|
-
>
|
|
360
|
-
<svg
|
|
361
|
-
aria-hidden="true"
|
|
362
|
-
fill="currentColor"
|
|
363
|
-
focusable="false"
|
|
364
|
-
height="24"
|
|
365
|
-
role="none"
|
|
366
|
-
viewBox="0 0 24 24"
|
|
367
|
-
width="24"
|
|
368
|
-
>
|
|
369
|
-
<path
|
|
370
|
-
d="M22.286 11.143h-9.429V1.715h-1.714v9.428H1.714v1.715h9.429v9.428h1.714v-9.428h9.429v-1.715Z"
|
|
371
|
-
/>
|
|
372
|
-
</svg>
|
|
373
|
-
</span>
|
|
374
|
-
<span
|
|
375
|
-
class="np-text-body-default-bold np-circular-btn__label"
|
|
376
|
-
>
|
|
377
|
-
Add money
|
|
378
|
-
</span>
|
|
379
|
-
</label>
|
|
380
|
-
</div>
|
|
381
|
-
`;
|