Skip to content

Commit 5f84d93

Browse files
authored
Merge pull request #78 from multiversx/development
0.0.0-alpha.12
2 parents 4ffce61 + df46ce9 commit 5f84d93

File tree

14 files changed

+693
-140
lines changed

14 files changed

+693
-140
lines changed

CHANGELOG.md

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

88
## [Unreleased]
99

10+
## [[0.0.0-alpha.12](https://github.com/multiversx/mx-sdk-dapp-core-ui/pull/78)] - 2025-04-10
11+
12+
- [Add stencil-tailwind-plugin for tailwind v4](https://github.com/multiversx/mx-sdk-dapp-core-ui/pull/77)
13+
1014
## [[0.0.0-alpha.11](https://github.com/multiversx/mx-sdk-dapp-core-ui/pull/76)] - 2025-04-09
1115

1216
- [Added prefix to functional and controlled components](https://github.com/multiversx/mx-sdk-dapp-core-ui/pull/75)

package.json

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@multiversx/sdk-dapp-core-ui",
3-
"version": "0.0.0-alpha.11",
3+
"version": "0.0.0-alpha.12",
44
"description": "A library to hold UI components for a dApp on the MultiversX blockchain",
55
"author": "MultiversX",
66
"license": "MIT",
@@ -45,16 +45,15 @@
4545
"dist/"
4646
],
4747
"scripts": {
48-
"test": "npm run build:css && stencil test --spec --e2e",
48+
"test": "stencil test --spec --e2e",
4949
"lint": "eslint src",
5050
"lint:fix": "eslint src --fix",
5151
"unpublish-verdaccio": "npm unpublish @multiversx/sdk-dapp-core-ui --force --registry http://localhost:4873",
5252
"publish-verdaccio": "npm run unpublish-verdaccio && npm run build && npm publish --registry http://localhost:4873/",
5353
"test.watch": "stencil test --spec --e2e --watchAll",
5454
"generate": "stencil generate",
55-
"build": "npm run build:css && stencil build",
56-
"build:css": "npx @tailwindcss/cli -i src/global/tailwind.css -o ./dist/output.css",
57-
"start": "npm run build:css && stencil build --dev --watch --serve "
55+
"build": "stencil build",
56+
"start": "stencil build --dev --watch --serve "
5857
},
5958
"dependencies": {
6059
"@fortawesome/fontawesome-svg-core": ">= 6.7.2",
@@ -70,6 +69,7 @@
7069
"@stencil/sass": "^3.0.12",
7170
"@stencil/store": "2.0.16",
7271
"@tailwindcss/cli": "4.0.17",
72+
"@tailwindcss/postcss": "4.1.3",
7373
"@types/jest": "^29.5.14",
7474
"@types/jsdom": "^21.1.1",
7575
"@types/node": "^22.10.0",
@@ -84,6 +84,7 @@
8484
"prettier": "3.2.5",
8585
"puppeteer": "^23.9.0",
8686
"rollup-plugin-node-polyfills": "^0.2.1",
87+
"stencil-tailwind-plugin": "2.0.5",
8788
"tailwindcss": "4.0.15",
8889
"typescript": "^5.7.3"
8990
}

src/components/functional/sign-transactions-panel/components/balance-component/balance-component.css

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
1-
* {
2-
margin: 0;
3-
padding: 0;
4-
box-sizing: border-box;
5-
}
6-
71
.balance-container {
82
display: flex;
93
flex-direction: column;

src/components/functional/sign-transactions-panel/components/fungible-component/fungible-component.css

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
1-
* {
2-
margin: 0;
3-
padding: 0;
4-
box-sizing: border-box;
5-
}
6-
71
.fungible-container {
82
display: flex;
93
flex-direction: column;

src/components/functional/sign-transactions-panel/components/sign-transaction-component/components/transaction-fee-component/transaction-fee-component.css

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
1-
* {
2-
margin: 0;
3-
padding: 0;
4-
box-sizing: border-box;
5-
}
6-
71
.transaction-fee-container {
82
display: flex;
93
flex-direction: column;
@@ -85,14 +79,14 @@
8579
position: relative;
8680
}
8781

88-
.radio-option input[type="radio"] {
82+
.radio-option input[type='radio'] {
8983
position: absolute;
9084
opacity: 0;
9185
width: 0;
9286
height: 0;
9387
}
9488

95-
.radio-option input[type="radio"]:checked + label {
89+
.radio-option input[type='radio']:checked + label {
9690
background: #0d6efd;
9791
color: white;
9892
}

src/components/functional/sign-transactions-panel/components/sign-transaction-component/sign-transaction-component.css

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
1-
* {
2-
margin: 0;
3-
padding: 0;
4-
box-sizing: border-box;
5-
}
6-
71
.transaction-container {
82
display: flex;
93
flex-direction: column;

src/components/functional/sign-transactions-panel/sign-transactions-panel.css

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
1-
* {
2-
margin: 0;
3-
padding: 0;
4-
box-sizing: border-box;
5-
}
6-
71
.transaction-header-container {
82
display: flex;
93
flex-direction: column;
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.explorer-link {
2-
text-decoration: none;
3-
color: var(--mx-explorer-link-color, -webkit-link); /* Default color */
1+
.mvx\:explorer-link {
2+
@apply mvx:decoration-0;
3+
color: var(--mx-explorer-link-color, -webkit-link);
44
}

src/components/visual/explorer-link/explorer-link.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { Component, Element, h, Prop, State } from '@stencil/core';
77
styleUrl: 'explorer-link.css',
88
})
99
export class ExplorerLink {
10-
@Prop() class?: string = 'explorer-link';
10+
@Prop() class?: string;
1111
@Prop() iconClass?: string = 'explorer-link-icon';
1212
@Prop() dataTestId?: string;
1313
@Prop() icon?: IconDefinition;
@@ -23,7 +23,7 @@ export class ExplorerLink {
2323

2424
render() {
2525
return (
26-
<a data-testid={this.dataTestId} href={this.link} target="_blank" class={this.class} rel="noreferrer">
26+
<a data-testid={this.dataTestId} href={this.link} target="_blank" class={{ 'mvx:explorer-link': true, [this.class]: Boolean(this.class) }} rel="noreferrer">
2727
{this.hasSlotContent ? <slot name="content"></slot> : this.text ?? <mvx-fa-icon icon={this.icon ?? faArrowUpRightFromSquare} class={this.iconClass}></mvx-fa-icon>}
2828
</a>
2929
);

src/components/visual/explorer-link/tests/explorer-link.spec.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ describe('ExplorerLink', () => {
1111
});
1212
expect(page.root).toEqualHtml(`
1313
<mvx-explorer-link link="https://example.com">
14-
<a href="https://example.com" target="_blank" class="explorer-link" rel="noreferrer">
14+
<a href="https://example.com" target="_blank" class="mvx:explorer-link" rel="noreferrer">
1515
<mvx-fa-icon class="explorer-link-icon"></mvx-fa-icon>
1616
</a>
1717
</mvx-explorer-link>
@@ -25,7 +25,7 @@ describe('ExplorerLink', () => {
2525
});
2626
expect(page.root).toEqualHtml(`
2727
<mvx-explorer-link link="https://example.com" text="View on Explorer">
28-
<a href="https://example.com" target="_blank" class="explorer-link" rel="noreferrer">
28+
<a href="https://example.com" target="_blank" class="mvx:explorer-link" rel="noreferrer">
2929
View on Explorer
3030
</a>
3131
</mvx-explorer-link>
@@ -39,7 +39,7 @@ describe('ExplorerLink', () => {
3939
});
4040
expect(page.root).toEqualHtml(`
4141
<mvx-explorer-link link="https://example.com" class="custom-class">
42-
<a href="https://example.com" target="_blank" class="custom-class" rel="noreferrer">
42+
<a href="https://example.com" target="_blank" class="mvx:explorer-link custom-class" rel="noreferrer">
4343
<mvx-fa-icon class="explorer-link-icon"></mvx-fa-icon>
4444
</a>
4545
</mvx-explorer-link>
@@ -57,7 +57,7 @@ describe('ExplorerLink', () => {
5757

5858
expect(page.root).toEqualHtml(`
5959
<mvx-explorer-link link="https://example.com">
60-
<a href="https://example.com" target="_blank" class="explorer-link" rel="noreferrer">
60+
<a href="https://example.com" target="_blank" class="mvx:explorer-link" rel="noreferrer">
6161
<mvx-fa-icon class="explorer-link-icon"></mvx-fa-icon>
6262
</a>
6363
</mvx-explorer-link>

0 commit comments

Comments
 (0)