Skip to content

Commit 5a164b3

Browse files
zel-kassCopilotaquelemiguelgamegee
authored
[D]DLS-535-feat(ui-react): add MediaCard component (#575)
* feat: add MediaCard component with accessibility features and internationalization support * feat(ui-react): add MediaCard component with Figma integration, stories, and tests * feat(ui-react): enhance MediaCard with MediaCardTitle for improved content structure * fix(ui-react): rename 'text' prop to 'title' in MediaCard for clarity * nx release plan * fix onClick type to avoid confusion with getButtonA11yProps Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> * Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> * chore(ui-react): fix lint error * feat(ui-react): enhance InteractiveIcon and MediaCard components with appearance variants and improved accessibility * fix(MediaCard): update error handling test to check for image removal instead of opacity * feat(MediaCard): add 'WithClose' story to demonstrate card visibility toggle functionality * refactor(InteractiveIcon): streamline Figma integration by consolidating shared properties and enhancing appearance options * chore: patch react-native-worklets@0.5.2 to fix Storybook for Reanimated v4 (#585) * Add figma plugin (#586) Signed-off-by: Simon Bruneaud <simon.bruneaud@ledger.fr> * feat(MediaCard): enhance interactivity by making onClick and onClose props optional, update documentation and tests accordingly --------- Signed-off-by: Simon Bruneaud <simon.bruneaud@ledger.fr> Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> Co-authored-by: Miguel Mano <aquelemiguel@gmail.com> Co-authored-by: Simon.b <15988848+gamegee@users.noreply.github.com>
1 parent 907c824 commit 5a164b3

File tree

23 files changed

+825
-57
lines changed

23 files changed

+825
-57
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@ledgerhq/lumen-ui-react': patch
3+
---
4+
5+
feat(MediaCard): introduce MediaCard for web with docs, tests, and figma code connect.

libs/ui-react/src/i18n/locales/de.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
{
2+
"common": {
3+
"closeAriaLabel": "Schließen"
4+
},
25
"components": {
36
"addressInput": {
47
"qrCodeAriaLabel": "QR-Code scannen"

libs/ui-react/src/i18n/locales/en.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
{
2+
"common": {
3+
"closeAriaLabel": "Close"
4+
},
25
"components": {
36
"addressInput": {
47
"qrCodeAriaLabel": "Scan QR code"

libs/ui-react/src/i18n/locales/es.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
{
2+
"common": {
3+
"closeAriaLabel": "Cerrar"
4+
},
25
"components": {
36
"addressInput": {
47
"qrCodeAriaLabel": "Escanear código QR"

libs/ui-react/src/i18n/locales/fr.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
{
2+
"common": {
3+
"closeAriaLabel": "Fermer"
4+
},
25
"components": {
36
"addressInput": {
47
"qrCodeAriaLabel": "Scanner le code QR"

libs/ui-react/src/i18n/locales/ja.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
{
2+
"common": {
3+
"closeAriaLabel": "閉じる"
4+
},
25
"components": {
36
"addressInput": {
47
"qrCodeAriaLabel": "QRコードをスキャン"

libs/ui-react/src/i18n/locales/ko.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
{
2+
"common": {
3+
"closeAriaLabel": "닫기"
4+
},
25
"components": {
36
"addressInput": {
47
"qrCodeAriaLabel": "QR 코드 스캔"

libs/ui-react/src/i18n/locales/pt.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
{
2+
"common": {
3+
"closeAriaLabel": "Fechar"
4+
},
25
"components": {
36
"addressInput": {
47
"qrCodeAriaLabel": "Escanear QR Code"

libs/ui-react/src/i18n/locales/ru.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
{
2+
"common": {
3+
"closeAriaLabel": "Закрыть"
4+
},
25
"components": {
36
"addressInput": {
47
"qrCodeAriaLabel": "Сканировать QR-код"

libs/ui-react/src/i18n/locales/th.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
{
2+
"common": {
3+
"closeAriaLabel": "ปิด"
4+
},
25
"components": {
36
"addressInput": {
47
"qrCodeAriaLabel": "สแกน QR Code"

0 commit comments

Comments
 (0)