Skip to content

Commit 4bc8757

Browse files
Merge pull request #145 from multiversx/development
v0.0.9
2 parents b0b7b7d + e8f0c93 commit 4bc8757

File tree

17 files changed

+475
-114
lines changed

17 files changed

+475
-114
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
## [[0.0.9](https://github.com/multiversx/mx-sdk-dapp-ui/pull/145)] - 2025-07-03
11+
12+
- [Fixed icons max width / height in toasts.](https://github.com/multiversx/mx-sdk-dapp-ui/pull/143)
13+
- [Refactor color variable names to avoid Tailwind naming conflicts](https://github.com/multiversx/mx-sdk-dapp-ui/pull/142)
14+
- [Added dataTestId to unlock panel provider button](https://github.com/multiversx/mx-sdk-dapp-ui/pull/141)
15+
- [Added swipe functionality for the mobile side panel](https://github.com/multiversx/mx-sdk-dapp-ui/pull/140)
16+
1017
## [[0.0.8](https://github.com/multiversx/mx-sdk-dapp-ui/pull/138)] - 2025-06-30
1118

1219
- [Fixed images not displaying in the unlock panel.](https://github.com/multiversx/mx-sdk-dapp-ui/pull/137)

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@multiversx/sdk-dapp-ui",
3-
"version": "0.0.8",
3+
"version": "0.0.9",
44
"description": "A library to hold UI components for a dApp on the MultiversX blockchain",
55
"author": "MultiversX",
66
"license": "MIT",
@@ -56,7 +56,6 @@
5656
"dependencies": {
5757
"@fortawesome/fontawesome-svg-core": ">= 6.7.2",
5858
"@fortawesome/free-solid-svg-icons": ">= 6.7.2",
59-
"@multiversx/sdk-dapp-utils": ">= 1.0.4",
6059
"@rollup/plugin-image": "^3.0.3",
6160
"@stencil/react-output-target": "0.8.2",
6261
"classnames": ">= 2.5.1",
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
:host {
2+
.transaction-asset-image {
3+
@apply mvx:max-w-full mvx:max-h-full;
4+
}
5+
}

src/components/common/transaction-asset-icon/transaction-asset-icon.tsx

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ export enum IconSizeEnumType {
88

99
@Component({
1010
tag: 'mvx-transaction-asset-icon',
11+
styleUrl: 'transaction-asset-icon.scss',
1112
shadow: true,
1213
})
1314
export class TransactionAssetIcon {
@@ -24,7 +25,14 @@ export class TransactionAssetIcon {
2425
}
2526

2627
if (this.transaction.asset.imageUrl) {
27-
return <img src={this.transaction.asset.imageUrl} alt="Transaction icon" loading="lazy" />;
28+
return (
29+
<img
30+
src={this.transaction.asset.imageUrl}
31+
alt="Transaction icon"
32+
loading="lazy"
33+
class="transaction-asset-image"
34+
/>
35+
);
2836
}
2937

3038
if (this.transaction.asset.icon) {

src/components/common/unlock-button/unlock-button.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
@apply mvx:flex mvx:items-center;
3737

3838
svg path {
39-
fill: var(--mvx-teal-400);
39+
fill: var(--mvx-teal-350);
4040
}
4141
}
4242
}

src/components/common/unlock-button/unlock-button.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export class UnlockButton {
1717
@Prop() label: string;
1818
@Prop() iconUrl: string;
1919
@Prop() icon?: HTMLElement;
20-
20+
@Prop() dataTestId?: string;
2121
@Prop() type?: IProviderBase['type'];
2222
@Prop() class?: string;
2323

@@ -30,7 +30,7 @@ export class UnlockButton {
3030
const shouldShowOpenLabel = isDetectableProvider && (isExtensionInstalled || isMetaMaskInstalled);
3131

3232
return (
33-
<div class={{ 'unlock-button': true, [this.class]: Boolean(this.class) }}>
33+
<div data-testid={this.dataTestId} class={{ 'unlock-button': true, [this.class]: Boolean(this.class) }}>
3434
<div class="unlock-button-label">{this.label}</div>
3535

3636
<div

src/components/controlled/transactions-table/components/transaction-method/transaction-method.scss

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -44,19 +44,19 @@ a.badge:focus {
4444

4545
.badge-primary {
4646
color: var(--mvx-white);
47-
background-color: var(--mvx-blue-600);
47+
background-color: var(--mvx-blue-650);
4848
}
4949

5050
a.badge-primary:hover,
5151
a.badge-primary:focus {
5252
color: var(--mvx-white);
53-
background-color: var(--mvx-blue-700);
53+
background-color: var(--mvx-blue-750);
5454
}
5555

5656
a.badge-primary:focus,
5757
a.badge-primary.focus {
5858
outline: 0;
59-
box-shadow: 0 0 0 0.2rem var(--mvx-blue-600-50);
59+
box-shadow: 0 0 0 0.2rem var(--mvx-blue-650);
6060
}
6161

6262
.badge-secondary {
@@ -67,7 +67,7 @@ a.badge-primary.focus {
6767
a.badge-secondary:hover,
6868
a.badge-secondary:focus {
6969
color: var(--mvx-white);
70-
background-color: var(--mvx-slate-500);
70+
background-color: var(--mvx-slate-550);
7171
}
7272

7373
a.badge-secondary:focus,
@@ -77,7 +77,7 @@ a.badge-secondary.focus {
7777

7878
.badge-success {
7979
color: var(--mvx-white);
80-
background-color: var(--mvx-green-600);
80+
background-color: var(--mvx-green-650);
8181
}
8282

8383
a.badge-success:hover,
@@ -93,13 +93,13 @@ a.badge-success.focus {
9393

9494
.badge-info {
9595
color: var(--mvx-white);
96-
background-color: var(--mvx-cyan-500);
96+
background-color: var(--mvx-cyan-550);
9797
}
9898

9999
a.badge-info:hover,
100100
a.badge-info:focus {
101101
color: var(--mvx-white);
102-
background-color: var(--mvx-cyan-500);
102+
background-color: var(--mvx-cyan-550);
103103
}
104104

105105
a.badge-info:focus,
@@ -109,14 +109,14 @@ a.badge-info.focus {
109109
}
110110

111111
.badge-warning {
112-
color: var(--mvx-gray-900);
112+
color: var(--mvx-gray-925);
113113
background-color: var(--mvx-yellow-400);
114114
}
115115

116116
a.badge-warning:hover,
117117
a.badge-warning:focus {
118-
color: var(--mvx-gray-900);
119-
background-color: var(--mvx-yellow-600);
118+
color: var(--mvx-gray-925);
119+
background-color: var(--mvx-yellow-650);
120120
}
121121

122122
a.badge-warning:focus,
@@ -133,7 +133,7 @@ a.badge-warning.focus {
133133
a.badge-danger:hover,
134134
a.badge-danger:focus {
135135
color: var(--mvx-white);
136-
background-color: var(--mvx-red-700);
136+
background-color: var(--mvx-red-750);
137137
}
138138

139139
a.badge-danger:focus,
@@ -143,14 +143,14 @@ a.badge-danger.focus {
143143
}
144144

145145
.badge-light {
146-
color: var(--mvx-gray-900);
147-
background-color: var(--mvx-gray-100);
146+
color: var(--mvx-gray-925);
147+
background-color: var(--mvx-gray-150);
148148
}
149149

150150
a.badge-light:hover,
151151
a.badge-light:focus {
152-
color: var(--mvx-gray-900);
153-
background-color: var(--mvx-gray-300);
152+
color: var(--mvx-gray-925);
153+
background-color: var(--mvx-gray-250);
154154
}
155155

156156
a.badge-light:focus,
@@ -161,13 +161,13 @@ a.badge-light.focus {
161161

162162
.badge-dark {
163163
color: var(--mvx-white);
164-
background-color: var(--mvx-gray-800);
164+
background-color: var(--mvx-gray-725);
165165
}
166166

167167
a.badge-dark:hover,
168168
a.badge-dark:focus {
169169
color: var(--mvx-white);
170-
background-color: var(--mvx-gray-900);
170+
background-color: var(--mvx-gray-925);
171171
}
172172

173173
a.badge-dark:focus,

src/components/controlled/transactions-table/components/transaction-value/transaction-value.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555

5656
.badge-primary {
5757
color: var(--mvx-white);
58-
background-color: var(--mvx-blue-600);
58+
background-color: var(--mvx-blue-650);
5959
}
6060

6161
.badge-secondary {
@@ -69,8 +69,8 @@
6969
}
7070

7171
.badge-light {
72-
color: var(--mvx-gray-900);
73-
background-color: var(--mvx-gray-100);
72+
color: var(--mvx-gray-925);
73+
background-color: var(--mvx-gray-150);
7474
}
7575

7676
.text-truncate {

src/components/functional/toasts-list/components/transaction-toast/components/transaction-toast-details/components/transaction-toast-details-body.scss

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
}
2121

2222
.transaction-details-list-item-copy {
23-
@apply mvx:visible;
23+
@apply mvx:visible!;
2424
}
2525
}
2626

@@ -48,7 +48,7 @@
4848

4949
.transaction-details-list-item-icon-success {
5050
background-color: var(--mvx-success-bg-color);
51-
51+
5252
svg,
5353
.svg-inline--fa {
5454
color: var(--mvx-success-color) !important;
@@ -85,10 +85,10 @@
8585
}
8686

8787
.transaction-details-list-item-copy {
88-
@apply mvx:flex mvx:invisible;
88+
@apply mvx:flex mvx:invisible!;
8989

9090
.transaction-details-list-item-copy-icon {
91-
@apply mvx:h-4 mvx:w-4 mvx:flex mvx:flex-col mvx:justify-end mvx:shrink-0 mvx:transition-opacity mvx:duration-200 mvx:ease-in-out ;
91+
@apply mvx:h-4 mvx:w-4 mvx:flex mvx:flex-col mvx:justify-end mvx:shrink-0 mvx:transition-opacity mvx:duration-200 mvx:ease-in-out;
9292
color: var(--mvx-text-color-tertiary);
9393

9494
&:hover {

src/components/functional/unlock-panel/components/unlock-provider-button/unlock-provider-button.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ export class UnlockProviderButton {
3131
type={this.provider.type}
3232
class={classNames(this.class, unlockProviderButtonClasses.button)}
3333
icon={icon}
34+
dataTestId={this.provider.type.toString()}
3435
/>
3536
);
3637
}

0 commit comments

Comments
 (0)