@transferwise/components 46.83.3 → 46.84.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/common/closeButton/CloseButton.js.map +1 -1
- package/build/common/closeButton/CloseButton.mjs.map +1 -1
- package/build/flowNavigation/FlowNavigation.js +8 -3
- package/build/flowNavigation/FlowNavigation.js.map +1 -1
- package/build/flowNavigation/FlowNavigation.mjs +8 -3
- package/build/flowNavigation/FlowNavigation.mjs.map +1 -1
- package/build/i18n/de.json +5 -0
- package/build/i18n/de.json.js +5 -0
- package/build/i18n/de.json.js.map +1 -1
- package/build/i18n/de.json.mjs +5 -0
- package/build/i18n/de.json.mjs.map +1 -1
- package/build/iconButton/IconButton.js +41 -0
- package/build/iconButton/IconButton.js.map +1 -0
- package/build/iconButton/IconButton.mjs +39 -0
- package/build/iconButton/IconButton.mjs.map +1 -0
- package/build/index.js +2 -0
- package/build/index.js.map +1 -1
- package/build/index.mjs +1 -0
- package/build/index.mjs.map +1 -1
- package/build/main.css +86 -32
- package/build/primitives/PrimitiveAnchor/src/PrimitiveAnchor.js +83 -0
- package/build/primitives/PrimitiveAnchor/src/PrimitiveAnchor.js.map +1 -0
- package/build/primitives/PrimitiveAnchor/src/PrimitiveAnchor.mjs +81 -0
- package/build/primitives/PrimitiveAnchor/src/PrimitiveAnchor.mjs.map +1 -0
- package/build/primitives/PrimitiveButton/src/PrimitiveButton.js +90 -0
- package/build/primitives/PrimitiveButton/src/PrimitiveButton.js.map +1 -0
- package/build/primitives/PrimitiveButton/src/PrimitiveButton.mjs +88 -0
- package/build/primitives/PrimitiveButton/src/PrimitiveButton.mjs.map +1 -0
- package/build/styles/iconButton/IconButton.css +82 -0
- package/build/styles/main.css +86 -32
- package/build/styles/summary/Summary.css +4 -0
- package/build/summary/Summary.js +3 -3
- package/build/summary/Summary.js.map +1 -1
- package/build/summary/Summary.mjs +3 -3
- package/build/summary/Summary.mjs.map +1 -1
- package/build/types/common/closeButton/CloseButton.d.ts +3 -0
- package/build/types/common/closeButton/CloseButton.d.ts.map +1 -1
- package/build/types/flowNavigation/FlowNavigation.d.ts.map +1 -1
- package/build/types/iconButton/IconButton.d.ts +15 -0
- package/build/types/iconButton/IconButton.d.ts.map +1 -0
- package/build/types/iconButton/index.d.ts +3 -0
- package/build/types/iconButton/index.d.ts.map +1 -0
- package/build/types/index.d.ts +2 -0
- package/build/types/index.d.ts.map +1 -1
- package/build/types/summary/Summary.d.ts.map +1 -1
- package/package.json +3 -3
- package/src/common/closeButton/CloseButton.tsx +3 -0
- package/src/flowNavigation/FlowNavigation.spec.js +7 -8
- package/src/flowNavigation/FlowNavigation.tsx +11 -2
- package/src/flowNavigation/__snapshots__/FlowNavigation.spec.js.snap +27 -3
- package/src/i18n/de.json +5 -0
- package/src/iconButton/IconButton.css +82 -0
- package/src/iconButton/IconButton.less +55 -0
- package/src/iconButton/IconButton.story.tsx +107 -0
- package/src/iconButton/IconButton.tsx +51 -0
- package/src/iconButton/index.ts +2 -0
- package/src/index.ts +2 -0
- package/src/main.css +86 -32
- package/src/main.less +1 -1
- package/src/summary/Summary.css +4 -0
- package/src/summary/Summary.less +3 -0
- package/src/summary/Summary.story.tsx +13 -3
- package/src/summary/Summary.tsx +13 -11
- package/build/flowNavigation/backButton/BackButton.js +0 -30
- package/build/flowNavigation/backButton/BackButton.js.map +0 -1
- package/build/flowNavigation/backButton/BackButton.mjs +0 -28
- package/build/flowNavigation/backButton/BackButton.mjs.map +0 -1
- package/build/styles/flowNavigation/backButton/BackButton.css +0 -32
- package/build/types/flowNavigation/backButton/BackButton.d.ts +0 -7
- package/build/types/flowNavigation/backButton/BackButton.d.ts.map +0 -1
- package/build/types/flowNavigation/backButton/index.d.ts +0 -3
- package/build/types/flowNavigation/backButton/index.d.ts.map +0 -1
- package/src/flowNavigation/backButton/BackButton.css +0 -32
- package/src/flowNavigation/backButton/BackButton.less +0 -36
- package/src/flowNavigation/backButton/BackButton.tsx +0 -29
- package/src/flowNavigation/backButton/index.ts +0 -2
package/src/main.css
CHANGED
|
@@ -535,6 +535,88 @@ div.critical-comms .critical-comms-body {
|
|
|
535
535
|
.np-avatar-layout-horizontal-child {
|
|
536
536
|
margin-left: calc(var(--np-avatar-offset) * -1);
|
|
537
537
|
}
|
|
538
|
+
.np-icon-button {
|
|
539
|
+
border: none;
|
|
540
|
+
}
|
|
541
|
+
.np-icon-button-tertiary-default {
|
|
542
|
+
color: var(--color-interactive-primary);
|
|
543
|
+
background-color: rgba(134,167,189,0.10196);
|
|
544
|
+
background-color: var(--color-background-neutral);
|
|
545
|
+
}
|
|
546
|
+
.np-icon-button-tertiary-default:not(.disabled):not(:disabled):hover {
|
|
547
|
+
background-color: var(--color-background-neutral-hover);
|
|
548
|
+
}
|
|
549
|
+
.np-icon-button-tertiary-default:not(.disabled):not(:disabled):active {
|
|
550
|
+
background-color: var(--color-background-neutral-active);
|
|
551
|
+
}
|
|
552
|
+
.np-icon-button-primary-default {
|
|
553
|
+
color: var(--color-interactive-control);
|
|
554
|
+
background-color: #00a2dd;
|
|
555
|
+
background-color: var(--color-interactive-accent);
|
|
556
|
+
}
|
|
557
|
+
.np-icon-button-primary-default:not(.disabled):not(:disabled):hover {
|
|
558
|
+
background-color: #008fc9;
|
|
559
|
+
background-color: var(--color-interactive-accent-hover);
|
|
560
|
+
}
|
|
561
|
+
.np-icon-button-primary-default:not(.disabled):not(:disabled):active {
|
|
562
|
+
background-color: #0081ba;
|
|
563
|
+
background-color: var(--color-interactive-accent-active);
|
|
564
|
+
}
|
|
565
|
+
.np-icon-button-primary-negative {
|
|
566
|
+
color: var(--color-contrast-overlay);
|
|
567
|
+
background-color: var(--color-sentiment-negative-primary);
|
|
568
|
+
}
|
|
569
|
+
.np-icon-button-primary-negative:not(.disabled):not(:disabled):hover {
|
|
570
|
+
background-color: var(--color-sentiment-negative-primary-hover);
|
|
571
|
+
}
|
|
572
|
+
.np-icon-button-primary-negative:not(.disabled):not(:disabled):active {
|
|
573
|
+
background-color: var(--color-sentiment-negative-primary-active);
|
|
574
|
+
}
|
|
575
|
+
.np-theme-personal--bright-green .np-icon-button-primary-negative {
|
|
576
|
+
color: var(--color-white);
|
|
577
|
+
}
|
|
578
|
+
.np-icon-button-minimal-default {
|
|
579
|
+
color: var(--color-interactive-primary);
|
|
580
|
+
background-color: #ffffff;
|
|
581
|
+
background-color: var(--color-background-screen);
|
|
582
|
+
background-color: transparent;
|
|
583
|
+
}
|
|
584
|
+
.np-icon-button-minimal-default:not(.disabled):not(:disabled):hover {
|
|
585
|
+
background-color: var(--color-background-screen-hover);
|
|
586
|
+
}
|
|
587
|
+
.np-icon-button-minimal-default:not(.disabled):not(:disabled):active {
|
|
588
|
+
background-color: var(--color-background-screen-active);
|
|
589
|
+
}
|
|
590
|
+
.np-icon-button-secondary-default {
|
|
591
|
+
color: var(--color-interactive-primary);
|
|
592
|
+
background-color: var(--color-interactive-neutral);
|
|
593
|
+
}
|
|
594
|
+
.np-icon-button-secondary-default:not(.disabled):not(:disabled):hover {
|
|
595
|
+
background-color: var(--color-interactive-neutral-hover);
|
|
596
|
+
}
|
|
597
|
+
.np-icon-button-secondary-default:not(.disabled):not(:disabled):active {
|
|
598
|
+
background-color: var(--color-interactive-neutral-active);
|
|
599
|
+
}
|
|
600
|
+
.np-theme-personal--bright-green .np-icon-button-secondary-default,
|
|
601
|
+
.np-theme-personal--forest-green .np-icon-button-secondary-default {
|
|
602
|
+
color: var(--color-interactive-control);
|
|
603
|
+
}
|
|
604
|
+
.np-icon-button-secondary-negative {
|
|
605
|
+
color: var(--color-sentiment-negative-primary);
|
|
606
|
+
background-color: var(--color-sentiment-negative-secondary);
|
|
607
|
+
}
|
|
608
|
+
.np-icon-button-secondary-negative:not(.disabled):not(:disabled):hover {
|
|
609
|
+
background-color: var(--color-sentiment-negative-secondary-hover);
|
|
610
|
+
}
|
|
611
|
+
.np-icon-button-secondary-negative:not(.disabled):not(:disabled):active {
|
|
612
|
+
background-color: var(--color-sentiment-negative-secondary-active);
|
|
613
|
+
}
|
|
614
|
+
.np-theme-personal--bright-green .np-icon-button-secondary-negative {
|
|
615
|
+
color: var(--color-white);
|
|
616
|
+
}
|
|
617
|
+
.np-theme-personal--forest-green .np-icon-button-secondary-negative {
|
|
618
|
+
color: var(--color-contrast-overlay);
|
|
619
|
+
}
|
|
538
620
|
.tw-badge {
|
|
539
621
|
position: relative;
|
|
540
622
|
display: inline-block;
|
|
@@ -2201,38 +2283,6 @@ button.np-option {
|
|
|
2201
2283
|
outline: var(--ring-outline-color) solid var(--ring-outline-width);
|
|
2202
2284
|
outline-offset: var(--ring-outline-offset);
|
|
2203
2285
|
}
|
|
2204
|
-
.np-back-button {
|
|
2205
|
-
color: #00a2dd;
|
|
2206
|
-
color: var(--color-interactive-accent);
|
|
2207
|
-
display: flex !important;
|
|
2208
|
-
}
|
|
2209
|
-
.np-back-button:hover {
|
|
2210
|
-
color: #008fc9;
|
|
2211
|
-
color: var(--color-interactive-accent-hover);
|
|
2212
|
-
}
|
|
2213
|
-
.np-back-button:active {
|
|
2214
|
-
color: #0081ba;
|
|
2215
|
-
color: var(--color-interactive-accent-active);
|
|
2216
|
-
}
|
|
2217
|
-
.np-theme-personal .np-back-button {
|
|
2218
|
-
color: #37517e;
|
|
2219
|
-
color: var(--color-content-primary);
|
|
2220
|
-
}
|
|
2221
|
-
.np-theme-personal .np-back-button:hover {
|
|
2222
|
-
color: var(--color-content-primary-hover);
|
|
2223
|
-
}
|
|
2224
|
-
.np-theme-personal .np-back-button:active {
|
|
2225
|
-
color: var(--color-content-primary-active);
|
|
2226
|
-
}
|
|
2227
|
-
.np-theme-personal .np-back-button .tw-icon {
|
|
2228
|
-
color: var(--color-interactive-primary);
|
|
2229
|
-
}
|
|
2230
|
-
.np-theme-personal .np-back-button .tw-icon:hover {
|
|
2231
|
-
color: var(--color-interactive-primary-hover);
|
|
2232
|
-
}
|
|
2233
|
-
.np-theme-personal .np-back-button .tw-icon:active {
|
|
2234
|
-
color: var(--color-interactive-primary-active);
|
|
2235
|
-
}
|
|
2236
2286
|
.np-flow-navigation {
|
|
2237
2287
|
width: 100%;
|
|
2238
2288
|
min-height: 97px;
|
|
@@ -4950,6 +5000,10 @@ html:not([dir="rtl"]) .np-navigation-option {
|
|
|
4950
5000
|
padding-left: calc(var(--size-24) + var(--size-8));
|
|
4951
5001
|
padding-right: 0;
|
|
4952
5002
|
}
|
|
5003
|
+
.np-summary__description-icon {
|
|
5004
|
+
margin-top: 4px;
|
|
5005
|
+
margin-top: var(--size-4);
|
|
5006
|
+
}
|
|
4953
5007
|
.np-summary__action {
|
|
4954
5008
|
margin-top: 4px;
|
|
4955
5009
|
margin-top: var(--size-4);
|
package/src/main.less
CHANGED
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
@import "./avatar/Avatar.less";
|
|
6
6
|
@import "./avatarView/AvatarView.less";
|
|
7
7
|
@import "./avatarLayout/AvatarLayout.less";
|
|
8
|
+
@import "./iconButton/IconButton.less";
|
|
8
9
|
@import "./badge/Badge.less";
|
|
9
10
|
@import "./button/Button.less";
|
|
10
11
|
@import "./card/Card.less";
|
|
@@ -30,7 +31,6 @@
|
|
|
30
31
|
@import "./dropFade/DropFade.less";
|
|
31
32
|
@import "./emphasis/Emphasis.less";
|
|
32
33
|
@import "./flowNavigation/animatedLabel/AnimatedLabel.less";
|
|
33
|
-
@import "./flowNavigation/backButton/BackButton.less";
|
|
34
34
|
@import "./flowNavigation/FlowNavigation.less";
|
|
35
35
|
@import "./header/Header.less";
|
|
36
36
|
@import "./image/Image.less";
|
package/src/summary/Summary.css
CHANGED
package/src/summary/Summary.less
CHANGED
|
@@ -38,7 +38,7 @@ export const Basic = () => {
|
|
|
38
38
|
'aria-label': ' Click here to change address',
|
|
39
39
|
}}
|
|
40
40
|
as="li"
|
|
41
|
-
description=
|
|
41
|
+
description={description}
|
|
42
42
|
info={{
|
|
43
43
|
title: 'You entered your address',
|
|
44
44
|
content: 'Your address has been verified, no more actions are required.',
|
|
@@ -58,7 +58,7 @@ export const Basic = () => {
|
|
|
58
58
|
'aria-label': ' Click here to change address',
|
|
59
59
|
}}
|
|
60
60
|
as="li"
|
|
61
|
-
description=
|
|
61
|
+
description={description}
|
|
62
62
|
info={{
|
|
63
63
|
title: 'Address verification pending',
|
|
64
64
|
content:
|
|
@@ -80,11 +80,21 @@ export const Basic = () => {
|
|
|
80
80
|
target: '_blank',
|
|
81
81
|
}}
|
|
82
82
|
as="li"
|
|
83
|
-
description=
|
|
83
|
+
description={description}
|
|
84
84
|
icon={<HomeIcon size={24} />}
|
|
85
85
|
title="We’re verifying your address"
|
|
86
86
|
status={Status.PENDING}
|
|
87
87
|
/>
|
|
88
|
+
<Summary
|
|
89
|
+
action={{
|
|
90
|
+
text: actionText,
|
|
91
|
+
href: '#change-address',
|
|
92
|
+
'aria-label': ' Click here to change address',
|
|
93
|
+
}}
|
|
94
|
+
as="li"
|
|
95
|
+
description={description}
|
|
96
|
+
title={title}
|
|
97
|
+
/>
|
|
88
98
|
</ul>
|
|
89
99
|
);
|
|
90
100
|
};
|
package/src/summary/Summary.tsx
CHANGED
|
@@ -124,16 +124,18 @@ const Summary = ({
|
|
|
124
124
|
// @ts-expect-error we check whether `status` is not null before index `statusLabels` and `messages`
|
|
125
125
|
aria-label={status && intl.formatMessage(messages[statusLabels[status]])}
|
|
126
126
|
>
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
127
|
+
{icon && (
|
|
128
|
+
<div className="np-summary__icon">
|
|
129
|
+
{media}
|
|
130
|
+
{Badge && (
|
|
131
|
+
<div>
|
|
132
|
+
{/* @ts-expect-error it's okey to pass `undefined` into `sentiment` prop */}
|
|
133
|
+
<StatusIcon size={Size.SMALL} sentiment={statusMapping[status]} />
|
|
134
|
+
</div>
|
|
135
|
+
)}
|
|
136
|
+
</div>
|
|
137
|
+
)}
|
|
138
|
+
<div className={`np-summary__body ${icon ? 'm-l-2' : ''}`}>
|
|
137
139
|
<div className="np-summary__title d-flex">
|
|
138
140
|
<Body
|
|
139
141
|
as="span"
|
|
@@ -161,7 +163,7 @@ const Summary = ({
|
|
|
161
163
|
<Body
|
|
162
164
|
as="span"
|
|
163
165
|
type={Typography.BODY_DEFAULT}
|
|
164
|
-
className=
|
|
166
|
+
className={`d-block ${icon ? 'np-summary__description' : 'np-summary__description-icon'}`}
|
|
165
167
|
>
|
|
166
168
|
{description}
|
|
167
169
|
</Body>
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var icons = require('@transferwise/icons');
|
|
4
|
-
var clsx = require('clsx');
|
|
5
|
-
var avatarTypes = require('../../avatar/avatarTypes.js');
|
|
6
|
-
var Avatar = require('../../avatar/Avatar.js');
|
|
7
|
-
var jsxRuntime = require('react/jsx-runtime');
|
|
8
|
-
|
|
9
|
-
function BackButton({
|
|
10
|
-
className,
|
|
11
|
-
onClick,
|
|
12
|
-
'aria-label': ariaLabel
|
|
13
|
-
}) {
|
|
14
|
-
return /*#__PURE__*/jsxRuntime.jsx(Avatar, {
|
|
15
|
-
type: avatarTypes.AvatarType.ICON,
|
|
16
|
-
size: 40,
|
|
17
|
-
children: /*#__PURE__*/jsxRuntime.jsx("button", {
|
|
18
|
-
type: "button",
|
|
19
|
-
"aria-label": ariaLabel,
|
|
20
|
-
className: clsx.clsx('np-back-button', 'btn-unstyled', className),
|
|
21
|
-
onClick: onClick,
|
|
22
|
-
children: /*#__PURE__*/jsxRuntime.jsx(icons.ArrowLeft, {
|
|
23
|
-
size: 24
|
|
24
|
-
})
|
|
25
|
-
})
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
module.exports = BackButton;
|
|
30
|
-
//# sourceMappingURL=BackButton.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BackButton.js","sources":["../../../src/flowNavigation/backButton/BackButton.tsx"],"sourcesContent":["import { ArrowLeft as ArrowLeftIcon } from '@transferwise/icons';\nimport { clsx } from 'clsx';\n\nimport Avatar, { AvatarType } from '../../avatar';\n\nexport interface BackButtonProps {\n 'aria-label': string;\n className?: string;\n onClick?: React.MouseEventHandler<HTMLButtonElement>;\n}\n\nexport default function BackButton({\n className,\n onClick,\n 'aria-label': ariaLabel,\n}: BackButtonProps) {\n return (\n <Avatar type={AvatarType.ICON} size={40}>\n <button\n type=\"button\"\n aria-label={ariaLabel}\n className={clsx('np-back-button', 'btn-unstyled', className)}\n onClick={onClick}\n >\n <ArrowLeftIcon size={24} />\n </button>\n </Avatar>\n );\n}\n"],"names":["BackButton","className","onClick","ariaLabel","_jsx","Avatar","type","AvatarType","ICON","size","children","clsx","ArrowLeftIcon"],"mappings":";;;;;;;;AAWwB,SAAAA,UAAUA,CAAC;EACjCC,SAAS;EACTC,OAAO;AACP,EAAA,YAAY,EAAEC,SAAAA;AACE,CAAA,EAAA;EAChB,oBACEC,cAAA,CAACC,MAAM,EAAA;IAACC,IAAI,EAAEC,sBAAU,CAACC,IAAK;AAACC,IAAAA,IAAI,EAAE,EAAG;AAAAC,IAAAA,QAAA,eACtCN,cAAA,CAAA,QAAA,EAAA;AACEE,MAAAA,IAAI,EAAC,QAAQ;AACb,MAAA,YAAA,EAAYH,SAAU;MACtBF,SAAS,EAAEU,SAAI,CAAC,gBAAgB,EAAE,cAAc,EAAEV,SAAS,CAAE;AAC7DC,MAAAA,OAAO,EAAEA,OAAQ;MAAAQ,QAAA,eAEjBN,cAAA,CAACQ,eAAa,EAAA;AAACH,QAAAA,IAAI,EAAE,EAAA;OACvB,CAAA;KAAQ,CAAA;AACV,GAAQ,CAAC,CAAA;AAEb;;;;"}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { ArrowLeft } from '@transferwise/icons';
|
|
2
|
-
import { clsx } from 'clsx';
|
|
3
|
-
import { AvatarType } from '../../avatar/avatarTypes.mjs';
|
|
4
|
-
import Avatar from '../../avatar/Avatar.mjs';
|
|
5
|
-
import { jsx } from 'react/jsx-runtime';
|
|
6
|
-
|
|
7
|
-
function BackButton({
|
|
8
|
-
className,
|
|
9
|
-
onClick,
|
|
10
|
-
'aria-label': ariaLabel
|
|
11
|
-
}) {
|
|
12
|
-
return /*#__PURE__*/jsx(Avatar, {
|
|
13
|
-
type: AvatarType.ICON,
|
|
14
|
-
size: 40,
|
|
15
|
-
children: /*#__PURE__*/jsx("button", {
|
|
16
|
-
type: "button",
|
|
17
|
-
"aria-label": ariaLabel,
|
|
18
|
-
className: clsx('np-back-button', 'btn-unstyled', className),
|
|
19
|
-
onClick: onClick,
|
|
20
|
-
children: /*#__PURE__*/jsx(ArrowLeft, {
|
|
21
|
-
size: 24
|
|
22
|
-
})
|
|
23
|
-
})
|
|
24
|
-
});
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
export { BackButton as default };
|
|
28
|
-
//# sourceMappingURL=BackButton.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BackButton.mjs","sources":["../../../src/flowNavigation/backButton/BackButton.tsx"],"sourcesContent":["import { ArrowLeft as ArrowLeftIcon } from '@transferwise/icons';\nimport { clsx } from 'clsx';\n\nimport Avatar, { AvatarType } from '../../avatar';\n\nexport interface BackButtonProps {\n 'aria-label': string;\n className?: string;\n onClick?: React.MouseEventHandler<HTMLButtonElement>;\n}\n\nexport default function BackButton({\n className,\n onClick,\n 'aria-label': ariaLabel,\n}: BackButtonProps) {\n return (\n <Avatar type={AvatarType.ICON} size={40}>\n <button\n type=\"button\"\n aria-label={ariaLabel}\n className={clsx('np-back-button', 'btn-unstyled', className)}\n onClick={onClick}\n >\n <ArrowLeftIcon size={24} />\n </button>\n </Avatar>\n );\n}\n"],"names":["BackButton","className","onClick","ariaLabel","_jsx","Avatar","type","AvatarType","ICON","size","children","clsx","ArrowLeftIcon"],"mappings":";;;;;;AAWwB,SAAAA,UAAUA,CAAC;EACjCC,SAAS;EACTC,OAAO;AACP,EAAA,YAAY,EAAEC,SAAAA;AACE,CAAA,EAAA;EAChB,oBACEC,GAAA,CAACC,MAAM,EAAA;IAACC,IAAI,EAAEC,UAAU,CAACC,IAAK;AAACC,IAAAA,IAAI,EAAE,EAAG;AAAAC,IAAAA,QAAA,eACtCN,GAAA,CAAA,QAAA,EAAA;AACEE,MAAAA,IAAI,EAAC,QAAQ;AACb,MAAA,YAAA,EAAYH,SAAU;MACtBF,SAAS,EAAEU,IAAI,CAAC,gBAAgB,EAAE,cAAc,EAAEV,SAAS,CAAE;AAC7DC,MAAAA,OAAO,EAAEA,OAAQ;MAAAQ,QAAA,eAEjBN,GAAA,CAACQ,SAAa,EAAA;AAACH,QAAAA,IAAI,EAAE,EAAA;OACvB,CAAA;KAAQ,CAAA;AACV,GAAQ,CAAC,CAAA;AAEb;;;;"}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
.np-back-button {
|
|
2
|
-
color: #00a2dd;
|
|
3
|
-
color: var(--color-interactive-accent);
|
|
4
|
-
display: flex !important;
|
|
5
|
-
}
|
|
6
|
-
.np-back-button:hover {
|
|
7
|
-
color: #008fc9;
|
|
8
|
-
color: var(--color-interactive-accent-hover);
|
|
9
|
-
}
|
|
10
|
-
.np-back-button:active {
|
|
11
|
-
color: #0081ba;
|
|
12
|
-
color: var(--color-interactive-accent-active);
|
|
13
|
-
}
|
|
14
|
-
.np-theme-personal .np-back-button {
|
|
15
|
-
color: #37517e;
|
|
16
|
-
color: var(--color-content-primary);
|
|
17
|
-
}
|
|
18
|
-
.np-theme-personal .np-back-button:hover {
|
|
19
|
-
color: var(--color-content-primary-hover);
|
|
20
|
-
}
|
|
21
|
-
.np-theme-personal .np-back-button:active {
|
|
22
|
-
color: var(--color-content-primary-active);
|
|
23
|
-
}
|
|
24
|
-
.np-theme-personal .np-back-button .tw-icon {
|
|
25
|
-
color: var(--color-interactive-primary);
|
|
26
|
-
}
|
|
27
|
-
.np-theme-personal .np-back-button .tw-icon:hover {
|
|
28
|
-
color: var(--color-interactive-primary-hover);
|
|
29
|
-
}
|
|
30
|
-
.np-theme-personal .np-back-button .tw-icon:active {
|
|
31
|
-
color: var(--color-interactive-primary-active);
|
|
32
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export interface BackButtonProps {
|
|
2
|
-
'aria-label': string;
|
|
3
|
-
className?: string;
|
|
4
|
-
onClick?: React.MouseEventHandler<HTMLButtonElement>;
|
|
5
|
-
}
|
|
6
|
-
export default function BackButton({ className, onClick, 'aria-label': ariaLabel, }: BackButtonProps): import("react").JSX.Element;
|
|
7
|
-
//# sourceMappingURL=BackButton.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BackButton.d.ts","sourceRoot":"","sources":["../../../../src/flowNavigation/backButton/BackButton.tsx"],"names":[],"mappings":"AAKA,MAAM,WAAW,eAAe;IAC9B,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,CAAC;CACtD;AAED,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,EACjC,SAAS,EACT,OAAO,EACP,YAAY,EAAE,SAAS,GACxB,EAAE,eAAe,+BAajB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/flowNavigation/backButton/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,YAAY,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC"}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
.np-back-button {
|
|
2
|
-
color: #00a2dd;
|
|
3
|
-
color: var(--color-interactive-accent);
|
|
4
|
-
display: flex !important;
|
|
5
|
-
}
|
|
6
|
-
.np-back-button:hover {
|
|
7
|
-
color: #008fc9;
|
|
8
|
-
color: var(--color-interactive-accent-hover);
|
|
9
|
-
}
|
|
10
|
-
.np-back-button:active {
|
|
11
|
-
color: #0081ba;
|
|
12
|
-
color: var(--color-interactive-accent-active);
|
|
13
|
-
}
|
|
14
|
-
.np-theme-personal .np-back-button {
|
|
15
|
-
color: #37517e;
|
|
16
|
-
color: var(--color-content-primary);
|
|
17
|
-
}
|
|
18
|
-
.np-theme-personal .np-back-button:hover {
|
|
19
|
-
color: var(--color-content-primary-hover);
|
|
20
|
-
}
|
|
21
|
-
.np-theme-personal .np-back-button:active {
|
|
22
|
-
color: var(--color-content-primary-active);
|
|
23
|
-
}
|
|
24
|
-
.np-theme-personal .np-back-button .tw-icon {
|
|
25
|
-
color: var(--color-interactive-primary);
|
|
26
|
-
}
|
|
27
|
-
.np-theme-personal .np-back-button .tw-icon:hover {
|
|
28
|
-
color: var(--color-interactive-primary-hover);
|
|
29
|
-
}
|
|
30
|
-
.np-theme-personal .np-back-button .tw-icon:active {
|
|
31
|
-
color: var(--color-interactive-primary-active);
|
|
32
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
.np-back-button {
|
|
2
|
-
color: var(--color-interactive-accent);
|
|
3
|
-
display: flex !important;
|
|
4
|
-
|
|
5
|
-
&:hover {
|
|
6
|
-
color: var(--color-interactive-accent-hover);
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
&:active {
|
|
10
|
-
color: var(--color-interactive-accent-active);
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.np-theme-personal & {
|
|
14
|
-
color: var(--color-content-primary);
|
|
15
|
-
|
|
16
|
-
&:hover {
|
|
17
|
-
color: var(--color-content-primary-hover);
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
&:active {
|
|
21
|
-
color: var(--color-content-primary-active);
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
& .tw-icon {
|
|
25
|
-
color: var(--color-interactive-primary);
|
|
26
|
-
|
|
27
|
-
&:hover {
|
|
28
|
-
color: var(--color-interactive-primary-hover);
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
&:active {
|
|
32
|
-
color: var(--color-interactive-primary-active);
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { ArrowLeft as ArrowLeftIcon } from '@transferwise/icons';
|
|
2
|
-
import { clsx } from 'clsx';
|
|
3
|
-
|
|
4
|
-
import Avatar, { AvatarType } from '../../avatar';
|
|
5
|
-
|
|
6
|
-
export interface BackButtonProps {
|
|
7
|
-
'aria-label': string;
|
|
8
|
-
className?: string;
|
|
9
|
-
onClick?: React.MouseEventHandler<HTMLButtonElement>;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
export default function BackButton({
|
|
13
|
-
className,
|
|
14
|
-
onClick,
|
|
15
|
-
'aria-label': ariaLabel,
|
|
16
|
-
}: BackButtonProps) {
|
|
17
|
-
return (
|
|
18
|
-
<Avatar type={AvatarType.ICON} size={40}>
|
|
19
|
-
<button
|
|
20
|
-
type="button"
|
|
21
|
-
aria-label={ariaLabel}
|
|
22
|
-
className={clsx('np-back-button', 'btn-unstyled', className)}
|
|
23
|
-
onClick={onClick}
|
|
24
|
-
>
|
|
25
|
-
<ArrowLeftIcon size={24} />
|
|
26
|
-
</button>
|
|
27
|
-
</Avatar>
|
|
28
|
-
);
|
|
29
|
-
}
|