@ledgerhq/lumen-ui-react 0.1.27 → 0.1.29
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/dist/i18n/locales/de.json.d.ts +8 -4
- package/dist/i18n/locales/de.json.js +1 -1
- package/dist/i18n/locales/en.json.d.ts +5 -1
- package/dist/i18n/locales/en.json.js +1 -1
- package/dist/i18n/locales/es.json.d.ts +7 -3
- package/dist/i18n/locales/es.json.js +1 -1
- package/dist/i18n/locales/fr.json.d.ts +6 -2
- package/dist/i18n/locales/fr.json.js +1 -1
- package/dist/i18n/locales/ja.json.d.ts +7 -3
- package/dist/i18n/locales/ja.json.js +1 -1
- package/dist/i18n/locales/ko.json.d.ts +5 -1
- package/dist/i18n/locales/ko.json.js +1 -1
- package/dist/i18n/locales/pt.json.d.ts +6 -2
- package/dist/i18n/locales/pt.json.js +1 -1
- package/dist/i18n/locales/ru.json.d.ts +8 -4
- package/dist/i18n/locales/ru.json.js +1 -1
- package/dist/i18n/locales/th.json.d.ts +8 -4
- package/dist/i18n/locales/th.json.js +1 -1
- package/dist/i18n/locales/tr.json.d.ts +6 -2
- package/dist/i18n/locales/tr.json.js +2 -2
- package/dist/i18n/locales/zh.json.d.ts +6 -2
- package/dist/i18n/locales/zh.json.js +1 -1
- package/dist/lib/Components/Avatar/Avatar.d.ts.map +1 -1
- package/dist/lib/Components/Avatar/Avatar.js +21 -18
- package/dist/lib/Components/Avatar/types.d.ts +1 -1
- package/dist/lib/Components/Avatar/types.d.ts.map +1 -1
- package/dist/lib/Components/DotIcon/DotIcon.js +1 -1
- package/dist/lib/Components/DotIndicator/DotIndicator.d.ts.map +1 -1
- package/dist/lib/Components/DotIndicator/DotIndicator.js +2 -1
- package/dist/lib/Components/DotIndicator/types.d.ts +1 -1
- package/dist/lib/Components/DotIndicator/types.d.ts.map +1 -1
- package/dist/lib/Components/MediaButton/MediaButton.d.ts +1 -1
- package/dist/lib/Components/MediaImage/MediaImage.d.ts +9 -4
- package/dist/lib/Components/MediaImage/MediaImage.d.ts.map +1 -1
- package/dist/lib/Components/MediaImage/MediaImage.js +62 -35
- package/dist/lib/Components/MediaImage/types.d.ts +12 -0
- package/dist/lib/Components/MediaImage/types.d.ts.map +1 -1
- package/dist/lib/Components/NavBar/NavBar.d.ts +2 -2
- package/dist/package.json +2 -2
- package/package.json +1 -1
|
@@ -11,7 +11,8 @@ declare const _default: {
|
|
|
11
11
|
},
|
|
12
12
|
"avatar": {
|
|
13
13
|
"defaultAlt": "Benutzer-Avatar",
|
|
14
|
-
"notificationAriaLabel": "Hat Benachrichtigung"
|
|
14
|
+
"notificationAriaLabel": "Hat Benachrichtigung",
|
|
15
|
+
"fallbackIconAriaLabel": "Fallback-Icon"
|
|
15
16
|
},
|
|
16
17
|
"baseInput": {
|
|
17
18
|
"clearInputAriaLabel": "Eingabe löschen"
|
|
@@ -33,9 +34,12 @@ declare const _default: {
|
|
|
33
34
|
"goBackAriaLabel": "Zurück"
|
|
34
35
|
},
|
|
35
36
|
"sideBar": {
|
|
36
|
-
"navigationAriaLabel": "
|
|
37
|
-
"collapseAriaLabel": "Seitenleiste
|
|
38
|
-
"expandAriaLabel": "Seitenleiste
|
|
37
|
+
"navigationAriaLabel": "Seitenleistennavigation",
|
|
38
|
+
"collapseAriaLabel": "Seitenleiste ausblenden",
|
|
39
|
+
"expandAriaLabel": "Seitenleiste anzeigen"
|
|
40
|
+
},
|
|
41
|
+
"stepper": {
|
|
42
|
+
"progressAriaLabel": "Schritt {{currentStep}} von {{totalSteps}}"
|
|
39
43
|
}
|
|
40
44
|
}
|
|
41
45
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const e = { closeAriaLabel: "Schließen" }, a = { addressInput: { qrCodeAriaLabel: "QR-Code scannen" }, amountDisplay: { amountHiddenAriaLabel: "Betrag ausgeblendet" }, avatar: { defaultAlt: "Benutzer-Avatar", notificationAriaLabel: "Hat Benachrichtigung" }, baseInput: { clearInputAriaLabel: "Eingabe löschen" }, spinner: { loadingAriaLabel: "Wird geladen" }, dialogHeader: { goBackAriaLabel: "Zurück", closeAriaLabel: "Schließen" }, banner: { closeAriaLabel: "Schließen" }, link: { opensInNewTabAriaLabel: "(Öffnet in neuem Tab)" }, navBar: { goBackAriaLabel: "Zurück" }, sideBar: { navigationAriaLabel: "
|
|
1
|
+
const e = { closeAriaLabel: "Schließen" }, a = { addressInput: { qrCodeAriaLabel: "QR-Code scannen" }, amountDisplay: { amountHiddenAriaLabel: "Betrag ausgeblendet" }, avatar: { defaultAlt: "Benutzer-Avatar", notificationAriaLabel: "Hat Benachrichtigung", fallbackIconAriaLabel: "Fallback-Icon" }, baseInput: { clearInputAriaLabel: "Eingabe löschen" }, spinner: { loadingAriaLabel: "Wird geladen" }, dialogHeader: { goBackAriaLabel: "Zurück", closeAriaLabel: "Schließen" }, banner: { closeAriaLabel: "Schließen" }, link: { opensInNewTabAriaLabel: "(Öffnet in neuem Tab)" }, navBar: { goBackAriaLabel: "Zurück" }, sideBar: { navigationAriaLabel: "Seitenleistennavigation", collapseAriaLabel: "Seitenleiste ausblenden", expandAriaLabel: "Seitenleiste anzeigen" }, stepper: { progressAriaLabel: "Schritt {{currentStep}} von {{totalSteps}}" } }, n = {
|
|
2
2
|
common: e,
|
|
3
3
|
components: a
|
|
4
4
|
};
|
|
@@ -11,7 +11,8 @@ declare const _default: {
|
|
|
11
11
|
},
|
|
12
12
|
"avatar": {
|
|
13
13
|
"defaultAlt": "User avatar",
|
|
14
|
-
"notificationAriaLabel": "Has notification"
|
|
14
|
+
"notificationAriaLabel": "Has notification",
|
|
15
|
+
"fallbackIconAriaLabel": "Fallback Icon"
|
|
15
16
|
},
|
|
16
17
|
"baseInput": {
|
|
17
18
|
"clearInputAriaLabel": "Clear input"
|
|
@@ -37,6 +38,9 @@ declare const _default: {
|
|
|
37
38
|
"collapseAriaLabel": "Collapse sidebar",
|
|
38
39
|
"expandAriaLabel": "Expand sidebar"
|
|
39
40
|
},
|
|
41
|
+
"stepper": {
|
|
42
|
+
"progressAriaLabel": "Step {{currentStep}} of {{totalSteps}}"
|
|
43
|
+
},
|
|
40
44
|
"table": {
|
|
41
45
|
"ascAriaLabel": "Sort ascending",
|
|
42
46
|
"descAriaLabel": "Sort descending"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const a = { closeAriaLabel: "Close" }, e = { addressInput: { qrCodeAriaLabel: "Scan QR code" }, amountDisplay: { amountHiddenAriaLabel: "Amount hidden" }, avatar: { defaultAlt: "User avatar", notificationAriaLabel: "Has notification" }, baseInput: { clearInputAriaLabel: "Clear input" }, spinner: { loadingAriaLabel: "Loading" }, dialogHeader: { goBackAriaLabel: "Go back", closeAriaLabel: "Close" }, banner: { closeAriaLabel: "Close" }, link: { opensInNewTabAriaLabel: "(opens in a new tab)" }, navBar: { goBackAriaLabel: "Go back" }, sideBar: { navigationAriaLabel: "Sidebar navigation", collapseAriaLabel: "Collapse sidebar", expandAriaLabel: "Expand sidebar" }, table: { ascAriaLabel: "Sort ascending", descAriaLabel: "Sort descending" } }, n = {
|
|
1
|
+
const a = { closeAriaLabel: "Close" }, e = { addressInput: { qrCodeAriaLabel: "Scan QR code" }, amountDisplay: { amountHiddenAriaLabel: "Amount hidden" }, avatar: { defaultAlt: "User avatar", notificationAriaLabel: "Has notification", fallbackIconAriaLabel: "Fallback Icon" }, baseInput: { clearInputAriaLabel: "Clear input" }, spinner: { loadingAriaLabel: "Loading" }, dialogHeader: { goBackAriaLabel: "Go back", closeAriaLabel: "Close" }, banner: { closeAriaLabel: "Close" }, link: { opensInNewTabAriaLabel: "(opens in a new tab)" }, navBar: { goBackAriaLabel: "Go back" }, sideBar: { navigationAriaLabel: "Sidebar navigation", collapseAriaLabel: "Collapse sidebar", expandAriaLabel: "Expand sidebar" }, stepper: { progressAriaLabel: "Step {{currentStep}} of {{totalSteps}}" }, table: { ascAriaLabel: "Sort ascending", descAriaLabel: "Sort descending" } }, n = {
|
|
2
2
|
common: a,
|
|
3
3
|
components: e
|
|
4
4
|
};
|
|
@@ -11,7 +11,8 @@ declare const _default: {
|
|
|
11
11
|
},
|
|
12
12
|
"avatar": {
|
|
13
13
|
"defaultAlt": "Avatar de usuario",
|
|
14
|
-
"notificationAriaLabel": "Tiene notificación"
|
|
14
|
+
"notificationAriaLabel": "Tiene notificación",
|
|
15
|
+
"fallbackIconAriaLabel": "Ícono alternativo"
|
|
15
16
|
},
|
|
16
17
|
"baseInput": {
|
|
17
18
|
"clearInputAriaLabel": "Borrar entrada"
|
|
@@ -33,9 +34,12 @@ declare const _default: {
|
|
|
33
34
|
"goBackAriaLabel": "Volver"
|
|
34
35
|
},
|
|
35
36
|
"sideBar": {
|
|
36
|
-
"navigationAriaLabel": "Navegación lateral",
|
|
37
|
-
"collapseAriaLabel": "
|
|
37
|
+
"navigationAriaLabel": "Navegación de barra lateral",
|
|
38
|
+
"collapseAriaLabel": "Colapsar barra lateral",
|
|
38
39
|
"expandAriaLabel": "Expandir barra lateral"
|
|
40
|
+
},
|
|
41
|
+
"stepper": {
|
|
42
|
+
"progressAriaLabel": "Paso {{currentStep}} de {{totalSteps}}"
|
|
39
43
|
}
|
|
40
44
|
}
|
|
41
45
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const a = { closeAriaLabel: "Cerrar" }, e = { addressInput: { qrCodeAriaLabel: "Escanear código QR" }, amountDisplay: { amountHiddenAriaLabel: "Importe oculto" }, avatar: { defaultAlt: "Avatar de usuario", notificationAriaLabel: "Tiene notificación" }, baseInput: { clearInputAriaLabel: "Borrar entrada" }, spinner: { loadingAriaLabel: "Cargando" }, dialogHeader: { goBackAriaLabel: "Volver", closeAriaLabel: "Cerrar" }, banner: { closeAriaLabel: "Cerrar" }, link: { opensInNewTabAriaLabel: "(se abre en una pestaña nueva)" }, navBar: { goBackAriaLabel: "Volver" }, sideBar: { navigationAriaLabel: "Navegación lateral", collapseAriaLabel: "
|
|
1
|
+
const a = { closeAriaLabel: "Cerrar" }, e = { addressInput: { qrCodeAriaLabel: "Escanear código QR" }, amountDisplay: { amountHiddenAriaLabel: "Importe oculto" }, avatar: { defaultAlt: "Avatar de usuario", notificationAriaLabel: "Tiene notificación", fallbackIconAriaLabel: "Ícono alternativo" }, baseInput: { clearInputAriaLabel: "Borrar entrada" }, spinner: { loadingAriaLabel: "Cargando" }, dialogHeader: { goBackAriaLabel: "Volver", closeAriaLabel: "Cerrar" }, banner: { closeAriaLabel: "Cerrar" }, link: { opensInNewTabAriaLabel: "(se abre en una pestaña nueva)" }, navBar: { goBackAriaLabel: "Volver" }, sideBar: { navigationAriaLabel: "Navegación de barra lateral", collapseAriaLabel: "Colapsar barra lateral", expandAriaLabel: "Expandir barra lateral" }, stepper: { progressAriaLabel: "Paso {{currentStep}} de {{totalSteps}}" } }, r = {
|
|
2
2
|
common: a,
|
|
3
3
|
components: e
|
|
4
4
|
};
|
|
@@ -11,7 +11,8 @@ declare const _default: {
|
|
|
11
11
|
},
|
|
12
12
|
"avatar": {
|
|
13
13
|
"defaultAlt": "Avatar de l'utilisateur",
|
|
14
|
-
"notificationAriaLabel": "A une notification"
|
|
14
|
+
"notificationAriaLabel": "A une notification",
|
|
15
|
+
"fallbackIconAriaLabel": "Icône par défaut"
|
|
15
16
|
},
|
|
16
17
|
"baseInput": {
|
|
17
18
|
"clearInputAriaLabel": "Effacer la saisie"
|
|
@@ -33,10 +34,13 @@ declare const _default: {
|
|
|
33
34
|
"goBackAriaLabel": "Retour"
|
|
34
35
|
},
|
|
35
36
|
"sideBar": {
|
|
36
|
-
"navigationAriaLabel": "
|
|
37
|
+
"navigationAriaLabel": "Menu de navigation latéral",
|
|
37
38
|
"collapseAriaLabel": "Réduire la barre latérale",
|
|
38
39
|
"expandAriaLabel": "Développer la barre latérale"
|
|
39
40
|
},
|
|
41
|
+
"stepper": {
|
|
42
|
+
"progressAriaLabel": "Étape {{currentStep}} sur {{totalSteps}}"
|
|
43
|
+
},
|
|
40
44
|
"table": {
|
|
41
45
|
"ascAriaLabel": "Trier par ordre croissant",
|
|
42
46
|
"descAriaLabel": "Trier par ordre décroissant"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const a = { closeAriaLabel: "Fermer" }, e = { addressInput: { qrCodeAriaLabel: "Scanner le code QR" }, amountDisplay: { amountHiddenAriaLabel: "Montant masqué" }, avatar: { defaultAlt: "Avatar de l'utilisateur", notificationAriaLabel: "A une notification" }, baseInput: { clearInputAriaLabel: "Effacer la saisie" }, spinner: { loadingAriaLabel: "Chargement" }, dialogHeader: { goBackAriaLabel: "Retour", closeAriaLabel: "Fermer" }, banner: { closeAriaLabel: "Fermer" }, link: { opensInNewTabAriaLabel: "(s'ouvre dans un nouvel onglet)" }, navBar: { goBackAriaLabel: "Retour" }, sideBar: { navigationAriaLabel: "
|
|
1
|
+
const a = { closeAriaLabel: "Fermer" }, e = { addressInput: { qrCodeAriaLabel: "Scanner le code QR" }, amountDisplay: { amountHiddenAriaLabel: "Montant masqué" }, avatar: { defaultAlt: "Avatar de l'utilisateur", notificationAriaLabel: "A une notification", fallbackIconAriaLabel: "Icône par défaut" }, baseInput: { clearInputAriaLabel: "Effacer la saisie" }, spinner: { loadingAriaLabel: "Chargement" }, dialogHeader: { goBackAriaLabel: "Retour", closeAriaLabel: "Fermer" }, banner: { closeAriaLabel: "Fermer" }, link: { opensInNewTabAriaLabel: "(s'ouvre dans un nouvel onglet)" }, navBar: { goBackAriaLabel: "Retour" }, sideBar: { navigationAriaLabel: "Menu de navigation latéral", collapseAriaLabel: "Réduire la barre latérale", expandAriaLabel: "Développer la barre latérale" }, stepper: { progressAriaLabel: "Étape {{currentStep}} sur {{totalSteps}}" }, table: { ascAriaLabel: "Trier par ordre croissant", descAriaLabel: "Trier par ordre décroissant" } }, r = {
|
|
2
2
|
common: a,
|
|
3
3
|
components: e
|
|
4
4
|
};
|
|
@@ -11,7 +11,8 @@ declare const _default: {
|
|
|
11
11
|
},
|
|
12
12
|
"avatar": {
|
|
13
13
|
"defaultAlt": "ユーザーアバター",
|
|
14
|
-
"notificationAriaLabel": "通知あり"
|
|
14
|
+
"notificationAriaLabel": "通知あり",
|
|
15
|
+
"fallbackIconAriaLabel": "フォールバックアイコン"
|
|
15
16
|
},
|
|
16
17
|
"baseInput": {
|
|
17
18
|
"clearInputAriaLabel": "インプットを削除"
|
|
@@ -34,8 +35,11 @@ declare const _default: {
|
|
|
34
35
|
},
|
|
35
36
|
"sideBar": {
|
|
36
37
|
"navigationAriaLabel": "サイドバーナビゲーション",
|
|
37
|
-
"collapseAriaLabel": "
|
|
38
|
-
"expandAriaLabel": "
|
|
38
|
+
"collapseAriaLabel": "サイドバーを閉じる",
|
|
39
|
+
"expandAriaLabel": "サイドバーを開く"
|
|
40
|
+
},
|
|
41
|
+
"stepper": {
|
|
42
|
+
"progressAriaLabel": "ステップ{{currentStep}}/{{totalSteps}}"
|
|
39
43
|
}
|
|
40
44
|
}
|
|
41
45
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const a = { closeAriaLabel: "閉じる" }, e = { addressInput: { qrCodeAriaLabel: "QRコードをスキャン" }, amountDisplay: { amountHiddenAriaLabel: "金額非表示" }, avatar: { defaultAlt: "ユーザーアバター", notificationAriaLabel: "通知あり" }, baseInput: { clearInputAriaLabel: "インプットを削除" }, spinner: { loadingAriaLabel: "読み込み中" }, dialogHeader: { goBackAriaLabel: "戻る", closeAriaLabel: "閉じる" }, banner: { closeAriaLabel: "閉じる" }, link: { opensInNewTabAriaLabel: "(新しいタブで開く)" }, navBar: { goBackAriaLabel: "戻る" }, sideBar: { navigationAriaLabel: "サイドバーナビゲーション", collapseAriaLabel: "
|
|
1
|
+
const a = { closeAriaLabel: "閉じる" }, e = { addressInput: { qrCodeAriaLabel: "QRコードをスキャン" }, amountDisplay: { amountHiddenAriaLabel: "金額非表示" }, avatar: { defaultAlt: "ユーザーアバター", notificationAriaLabel: "通知あり", fallbackIconAriaLabel: "フォールバックアイコン" }, baseInput: { clearInputAriaLabel: "インプットを削除" }, spinner: { loadingAriaLabel: "読み込み中" }, dialogHeader: { goBackAriaLabel: "戻る", closeAriaLabel: "閉じる" }, banner: { closeAriaLabel: "閉じる" }, link: { opensInNewTabAriaLabel: "(新しいタブで開く)" }, navBar: { goBackAriaLabel: "戻る" }, sideBar: { navigationAriaLabel: "サイドバーナビゲーション", collapseAriaLabel: "サイドバーを閉じる", expandAriaLabel: "サイドバーを開く" }, stepper: { progressAriaLabel: "ステップ{{currentStep}}/{{totalSteps}}" } }, l = {
|
|
2
2
|
common: a,
|
|
3
3
|
components: e
|
|
4
4
|
};
|
|
@@ -11,7 +11,8 @@ declare const _default: {
|
|
|
11
11
|
},
|
|
12
12
|
"avatar": {
|
|
13
13
|
"defaultAlt": "사용자 아바타",
|
|
14
|
-
"notificationAriaLabel": "알림 있음"
|
|
14
|
+
"notificationAriaLabel": "알림 있음",
|
|
15
|
+
"fallbackIconAriaLabel": "대체 아이콘"
|
|
15
16
|
},
|
|
16
17
|
"baseInput": {
|
|
17
18
|
"clearInputAriaLabel": "입력 값 지우기"
|
|
@@ -36,6 +37,9 @@ declare const _default: {
|
|
|
36
37
|
"navigationAriaLabel": "사이드바 탐색",
|
|
37
38
|
"collapseAriaLabel": "사이드바 접기",
|
|
38
39
|
"expandAriaLabel": "사이드바 펼치기"
|
|
40
|
+
},
|
|
41
|
+
"stepper": {
|
|
42
|
+
"progressAriaLabel": "{{totalSteps}} 중 {{currentStep}} 단계"
|
|
39
43
|
}
|
|
40
44
|
}
|
|
41
45
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const a = { closeAriaLabel: "닫기" }, e = { addressInput: { qrCodeAriaLabel: "QR 코드 스캔" }, amountDisplay: { amountHiddenAriaLabel: "금액 숨김" }, avatar: { defaultAlt: "사용자 아바타", notificationAriaLabel: "알림 있음" }, baseInput: { clearInputAriaLabel: "입력 값 지우기" }, spinner: { loadingAriaLabel: "로딩중" }, dialogHeader: { goBackAriaLabel: "돌아가기", closeAriaLabel: "닫기" }, banner: { closeAriaLabel: "닫기" }, link: { opensInNewTabAriaLabel: "(새 탭에서 열기)" }, navBar: { goBackAriaLabel: "돌아가기" }, sideBar: { navigationAriaLabel: "사이드바 탐색", collapseAriaLabel: "사이드바 접기", expandAriaLabel: "사이드바 펼치기" } }, l = {
|
|
1
|
+
const a = { closeAriaLabel: "닫기" }, e = { addressInput: { qrCodeAriaLabel: "QR 코드 스캔" }, amountDisplay: { amountHiddenAriaLabel: "금액 숨김" }, avatar: { defaultAlt: "사용자 아바타", notificationAriaLabel: "알림 있음", fallbackIconAriaLabel: "대체 아이콘" }, baseInput: { clearInputAriaLabel: "입력 값 지우기" }, spinner: { loadingAriaLabel: "로딩중" }, dialogHeader: { goBackAriaLabel: "돌아가기", closeAriaLabel: "닫기" }, banner: { closeAriaLabel: "닫기" }, link: { opensInNewTabAriaLabel: "(새 탭에서 열기)" }, navBar: { goBackAriaLabel: "돌아가기" }, sideBar: { navigationAriaLabel: "사이드바 탐색", collapseAriaLabel: "사이드바 접기", expandAriaLabel: "사이드바 펼치기" }, stepper: { progressAriaLabel: "{{totalSteps}} 중 {{currentStep}} 단계" } }, l = {
|
|
2
2
|
common: a,
|
|
3
3
|
components: e
|
|
4
4
|
};
|
|
@@ -11,7 +11,8 @@ declare const _default: {
|
|
|
11
11
|
},
|
|
12
12
|
"avatar": {
|
|
13
13
|
"defaultAlt": "Avatar do usuário",
|
|
14
|
-
"notificationAriaLabel": "Tem notificação"
|
|
14
|
+
"notificationAriaLabel": "Tem notificação",
|
|
15
|
+
"fallbackIconAriaLabel": "Ícone fallback"
|
|
15
16
|
},
|
|
16
17
|
"baseInput": {
|
|
17
18
|
"clearInputAriaLabel": "Limpar input"
|
|
@@ -33,9 +34,12 @@ declare const _default: {
|
|
|
33
34
|
"goBackAriaLabel": "Voltar"
|
|
34
35
|
},
|
|
35
36
|
"sideBar": {
|
|
36
|
-
"navigationAriaLabel": "
|
|
37
|
+
"navigationAriaLabel": "Barra de navegação lateral",
|
|
37
38
|
"collapseAriaLabel": "Recolher barra lateral",
|
|
38
39
|
"expandAriaLabel": "Expandir barra lateral"
|
|
40
|
+
},
|
|
41
|
+
"stepper": {
|
|
42
|
+
"progressAriaLabel": "Passo {{currentStep}} de {{totalSteps}}"
|
|
39
43
|
}
|
|
40
44
|
}
|
|
41
45
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const a = { closeAriaLabel: "Fechar" }, e = { addressInput: { qrCodeAriaLabel: "Escanear QR Code" }, amountDisplay: { amountHiddenAriaLabel: "Valor oculto" }, avatar: { defaultAlt: "Avatar do usuário", notificationAriaLabel: "Tem notificação" }, baseInput: { clearInputAriaLabel: "Limpar input" }, spinner: { loadingAriaLabel: "Carregando" }, dialogHeader: { goBackAriaLabel: "Voltar", closeAriaLabel: "Fechar" }, banner: { closeAriaLabel: "Fechar" }, link: { opensInNewTabAriaLabel: "(abre em uma nova aba)" }, navBar: { goBackAriaLabel: "Voltar" }, sideBar: { navigationAriaLabel: "
|
|
1
|
+
const a = { closeAriaLabel: "Fechar" }, e = { addressInput: { qrCodeAriaLabel: "Escanear QR Code" }, amountDisplay: { amountHiddenAriaLabel: "Valor oculto" }, avatar: { defaultAlt: "Avatar do usuário", notificationAriaLabel: "Tem notificação", fallbackIconAriaLabel: "Ícone fallback" }, baseInput: { clearInputAriaLabel: "Limpar input" }, spinner: { loadingAriaLabel: "Carregando" }, dialogHeader: { goBackAriaLabel: "Voltar", closeAriaLabel: "Fechar" }, banner: { closeAriaLabel: "Fechar" }, link: { opensInNewTabAriaLabel: "(abre em uma nova aba)" }, navBar: { goBackAriaLabel: "Voltar" }, sideBar: { navigationAriaLabel: "Barra de navegação lateral", collapseAriaLabel: "Recolher barra lateral", expandAriaLabel: "Expandir barra lateral" }, stepper: { progressAriaLabel: "Passo {{currentStep}} de {{totalSteps}}" } }, r = {
|
|
2
2
|
common: a,
|
|
3
3
|
components: e
|
|
4
4
|
};
|
|
@@ -11,7 +11,8 @@ declare const _default: {
|
|
|
11
11
|
},
|
|
12
12
|
"avatar": {
|
|
13
13
|
"defaultAlt": "Аватар пользователя",
|
|
14
|
-
"notificationAriaLabel": "Есть уведомление"
|
|
14
|
+
"notificationAriaLabel": "Есть уведомление",
|
|
15
|
+
"fallbackIconAriaLabel": "Стандартная иконка"
|
|
15
16
|
},
|
|
16
17
|
"baseInput": {
|
|
17
18
|
"clearInputAriaLabel": "Очистить поле"
|
|
@@ -33,9 +34,12 @@ declare const _default: {
|
|
|
33
34
|
"goBackAriaLabel": "Назад"
|
|
34
35
|
},
|
|
35
36
|
"sideBar": {
|
|
36
|
-
"navigationAriaLabel": "
|
|
37
|
-
"collapseAriaLabel": "
|
|
38
|
-
"expandAriaLabel": "
|
|
37
|
+
"navigationAriaLabel": "Боковое меню",
|
|
38
|
+
"collapseAriaLabel": "Скрыть боковое меню",
|
|
39
|
+
"expandAriaLabel": "Показать боковое меню"
|
|
40
|
+
},
|
|
41
|
+
"stepper": {
|
|
42
|
+
"progressAriaLabel": "Шаг {{currentStep}} из {{totalSteps}}"
|
|
39
43
|
}
|
|
40
44
|
}
|
|
41
45
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const a = { closeAriaLabel: "Закрыть" }, e = { addressInput: { qrCodeAriaLabel: "Сканировать QR-код" }, amountDisplay: { amountHiddenAriaLabel: "Сумма скрыта" }, avatar: { defaultAlt: "Аватар пользователя", notificationAriaLabel: "Есть уведомление" }, baseInput: { clearInputAriaLabel: "Очистить поле" }, spinner: { loadingAriaLabel: "Загрузка" }, dialogHeader: { goBackAriaLabel: "Назад", closeAriaLabel: "Закрыть" }, banner: { closeAriaLabel: "Закрыть" }, link: { opensInNewTabAriaLabel: "(открывается в новой вкладке)" }, navBar: { goBackAriaLabel: "Назад" }, sideBar: { navigationAriaLabel: "
|
|
1
|
+
const a = { closeAriaLabel: "Закрыть" }, e = { addressInput: { qrCodeAriaLabel: "Сканировать QR-код" }, amountDisplay: { amountHiddenAriaLabel: "Сумма скрыта" }, avatar: { defaultAlt: "Аватар пользователя", notificationAriaLabel: "Есть уведомление", fallbackIconAriaLabel: "Стандартная иконка" }, baseInput: { clearInputAriaLabel: "Очистить поле" }, spinner: { loadingAriaLabel: "Загрузка" }, dialogHeader: { goBackAriaLabel: "Назад", closeAriaLabel: "Закрыть" }, banner: { closeAriaLabel: "Закрыть" }, link: { opensInNewTabAriaLabel: "(открывается в новой вкладке)" }, navBar: { goBackAriaLabel: "Назад" }, sideBar: { navigationAriaLabel: "Боковое меню", collapseAriaLabel: "Скрыть боковое меню", expandAriaLabel: "Показать боковое меню" }, stepper: { progressAriaLabel: "Шаг {{currentStep}} из {{totalSteps}}" } }, l = {
|
|
2
2
|
common: a,
|
|
3
3
|
components: e
|
|
4
4
|
};
|
|
@@ -11,7 +11,8 @@ declare const _default: {
|
|
|
11
11
|
},
|
|
12
12
|
"avatar": {
|
|
13
13
|
"defaultAlt": "อวาตาร์ผู้ใช้",
|
|
14
|
-
"notificationAriaLabel": "มีการแจ้งเตือน"
|
|
14
|
+
"notificationAriaLabel": "มีการแจ้งเตือน",
|
|
15
|
+
"fallbackIconAriaLabel": "ไอคอนสำรอง"
|
|
15
16
|
},
|
|
16
17
|
"baseInput": {
|
|
17
18
|
"clearInputAriaLabel": "ล้างอินพุต"
|
|
@@ -33,9 +34,12 @@ declare const _default: {
|
|
|
33
34
|
"goBackAriaLabel": "ย้อนกลับ"
|
|
34
35
|
},
|
|
35
36
|
"sideBar": {
|
|
36
|
-
"navigationAriaLabel": "
|
|
37
|
-
"collapseAriaLabel": "
|
|
38
|
-
"expandAriaLabel": "
|
|
37
|
+
"navigationAriaLabel": "เมนูนำทางด้านข้าง",
|
|
38
|
+
"collapseAriaLabel": "ซ่อนแถบด้านข้าง",
|
|
39
|
+
"expandAriaLabel": "เปิดแถบด้านข้าง"
|
|
40
|
+
},
|
|
41
|
+
"stepper": {
|
|
42
|
+
"progressAriaLabel": "ขั้นตอนที่ {{currentStep}} จาก {{totalSteps}}"
|
|
39
43
|
}
|
|
40
44
|
}
|
|
41
45
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const a = { closeAriaLabel: "ปิด" }, e = { addressInput: { qrCodeAriaLabel: "สแกน QR Code" }, amountDisplay: { amountHiddenAriaLabel: "ยอดเงินถูกซ่อน" }, avatar: { defaultAlt: "อวาตาร์ผู้ใช้", notificationAriaLabel: "มีการแจ้งเตือน" }, baseInput: { clearInputAriaLabel: "ล้างอินพุต" }, spinner: { loadingAriaLabel: "กำลังโหลด" }, dialogHeader: { goBackAriaLabel: "ย้อนกลับ", closeAriaLabel: "ปิด" }, banner: { closeAriaLabel: "ปิด" }, link: { opensInNewTabAriaLabel: "(เปิดในแท็บใหม่)" }, navBar: { goBackAriaLabel: "ย้อนกลับ" }, sideBar: { navigationAriaLabel: "
|
|
1
|
+
const a = { closeAriaLabel: "ปิด" }, e = { addressInput: { qrCodeAriaLabel: "สแกน QR Code" }, amountDisplay: { amountHiddenAriaLabel: "ยอดเงินถูกซ่อน" }, avatar: { defaultAlt: "อวาตาร์ผู้ใช้", notificationAriaLabel: "มีการแจ้งเตือน", fallbackIconAriaLabel: "ไอคอนสำรอง" }, baseInput: { clearInputAriaLabel: "ล้างอินพุต" }, spinner: { loadingAriaLabel: "กำลังโหลด" }, dialogHeader: { goBackAriaLabel: "ย้อนกลับ", closeAriaLabel: "ปิด" }, banner: { closeAriaLabel: "ปิด" }, link: { opensInNewTabAriaLabel: "(เปิดในแท็บใหม่)" }, navBar: { goBackAriaLabel: "ย้อนกลับ" }, sideBar: { navigationAriaLabel: "เมนูนำทางด้านข้าง", collapseAriaLabel: "ซ่อนแถบด้านข้าง", expandAriaLabel: "เปิดแถบด้านข้าง" }, stepper: { progressAriaLabel: "ขั้นตอนที่ {{currentStep}} จาก {{totalSteps}}" } }, l = {
|
|
2
2
|
common: a,
|
|
3
3
|
components: e
|
|
4
4
|
};
|
|
@@ -11,7 +11,8 @@ declare const _default: {
|
|
|
11
11
|
},
|
|
12
12
|
"avatar": {
|
|
13
13
|
"defaultAlt": "Kullanıcı avatarı",
|
|
14
|
-
"notificationAriaLabel": "Bildirim var"
|
|
14
|
+
"notificationAriaLabel": "Bildirim var",
|
|
15
|
+
"fallbackIconAriaLabel": "Yedek simge"
|
|
15
16
|
},
|
|
16
17
|
"baseInput": {
|
|
17
18
|
"clearInputAriaLabel": "Girdiyi temizle"
|
|
@@ -33,9 +34,12 @@ declare const _default: {
|
|
|
33
34
|
"goBackAriaLabel": "Geri dön"
|
|
34
35
|
},
|
|
35
36
|
"sideBar": {
|
|
36
|
-
"navigationAriaLabel": "Kenar çubuğu
|
|
37
|
+
"navigationAriaLabel": "Kenar çubuğu menüsü",
|
|
37
38
|
"collapseAriaLabel": "Kenar çubuğunu daralt",
|
|
38
39
|
"expandAriaLabel": "Kenar çubuğunu genişlet"
|
|
40
|
+
},
|
|
41
|
+
"stepper": {
|
|
42
|
+
"progressAriaLabel": "Adım {{totalSteps}} / {{currentStep}}"
|
|
39
43
|
}
|
|
40
44
|
}
|
|
41
45
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
const a = { closeAriaLabel: "Kapat" }, e = { addressInput: { qrCodeAriaLabel: "Karekodu okut" }, amountDisplay: { amountHiddenAriaLabel: "Tutar gizlendi" }, avatar: { defaultAlt: "Kullanıcı avatarı", notificationAriaLabel: "Bildirim var" }, baseInput: { clearInputAriaLabel: "Girdiyi temizle" }, spinner: { loadingAriaLabel: "Yükleniyor" }, dialogHeader: { goBackAriaLabel: "Geri dön", closeAriaLabel: "Kapat" }, banner: { closeAriaLabel: "Kapat" }, link: { opensInNewTabAriaLabel: "(yeni sekmede açılır)" }, navBar: { goBackAriaLabel: "Geri dön" }, sideBar: { navigationAriaLabel: "Kenar çubuğu
|
|
1
|
+
const a = { closeAriaLabel: "Kapat" }, e = { addressInput: { qrCodeAriaLabel: "Karekodu okut" }, amountDisplay: { amountHiddenAriaLabel: "Tutar gizlendi" }, avatar: { defaultAlt: "Kullanıcı avatarı", notificationAriaLabel: "Bildirim var", fallbackIconAriaLabel: "Yedek simge" }, baseInput: { clearInputAriaLabel: "Girdiyi temizle" }, spinner: { loadingAriaLabel: "Yükleniyor" }, dialogHeader: { goBackAriaLabel: "Geri dön", closeAriaLabel: "Kapat" }, banner: { closeAriaLabel: "Kapat" }, link: { opensInNewTabAriaLabel: "(yeni sekmede açılır)" }, navBar: { goBackAriaLabel: "Geri dön" }, sideBar: { navigationAriaLabel: "Kenar çubuğu menüsü", collapseAriaLabel: "Kenar çubuğunu daralt", expandAriaLabel: "Kenar çubuğunu genişlet" }, stepper: { progressAriaLabel: "Adım {{totalSteps}} / {{currentStep}}" } }, r = {
|
|
2
2
|
common: a,
|
|
3
3
|
components: e
|
|
4
4
|
};
|
|
5
5
|
export {
|
|
6
6
|
a as common,
|
|
7
7
|
e as components,
|
|
8
|
-
|
|
8
|
+
r as default
|
|
9
9
|
};
|
|
@@ -11,7 +11,8 @@ declare const _default: {
|
|
|
11
11
|
},
|
|
12
12
|
"avatar": {
|
|
13
13
|
"defaultAlt": "用户头像",
|
|
14
|
-
"notificationAriaLabel": "有通知"
|
|
14
|
+
"notificationAriaLabel": "有通知",
|
|
15
|
+
"fallbackIconAriaLabel": "备用图标"
|
|
15
16
|
},
|
|
16
17
|
"baseInput": {
|
|
17
18
|
"clearInputAriaLabel": "清空输入框"
|
|
@@ -34,8 +35,11 @@ declare const _default: {
|
|
|
34
35
|
},
|
|
35
36
|
"sideBar": {
|
|
36
37
|
"navigationAriaLabel": "侧边栏导航",
|
|
37
|
-
"collapseAriaLabel": "
|
|
38
|
+
"collapseAriaLabel": "折叠侧边栏",
|
|
38
39
|
"expandAriaLabel": "展开侧边栏"
|
|
40
|
+
},
|
|
41
|
+
"stepper": {
|
|
42
|
+
"progressAriaLabel": "第 {{currentStep}} / {{totalSteps}} 步"
|
|
39
43
|
}
|
|
40
44
|
}
|
|
41
45
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const a = { closeAriaLabel: "关闭" }, e = { addressInput: { qrCodeAriaLabel: "扫描二维码" }, amountDisplay: { amountHiddenAriaLabel: "金额已隐藏" }, avatar: { defaultAlt: "用户头像", notificationAriaLabel: "有通知" }, baseInput: { clearInputAriaLabel: "清空输入框" }, spinner: { loadingAriaLabel: "加载中" }, dialogHeader: { goBackAriaLabel: "返回", closeAriaLabel: "关闭" }, banner: { closeAriaLabel: "关闭" }, link: { opensInNewTabAriaLabel: "(在新选项卡中打开)" }, navBar: { goBackAriaLabel: "返回" }, sideBar: { navigationAriaLabel: "侧边栏导航", collapseAriaLabel: "
|
|
1
|
+
const a = { closeAriaLabel: "关闭" }, e = { addressInput: { qrCodeAriaLabel: "扫描二维码" }, amountDisplay: { amountHiddenAriaLabel: "金额已隐藏" }, avatar: { defaultAlt: "用户头像", notificationAriaLabel: "有通知", fallbackIconAriaLabel: "备用图标" }, baseInput: { clearInputAriaLabel: "清空输入框" }, spinner: { loadingAriaLabel: "加载中" }, dialogHeader: { goBackAriaLabel: "返回", closeAriaLabel: "关闭" }, banner: { closeAriaLabel: "关闭" }, link: { opensInNewTabAriaLabel: "(在新选项卡中打开)" }, navBar: { goBackAriaLabel: "返回" }, sideBar: { navigationAriaLabel: "侧边栏导航", collapseAriaLabel: "折叠侧边栏", expandAriaLabel: "展开侧边栏" }, stepper: { progressAriaLabel: "第 {{currentStep}} / {{totalSteps}} 步" } }, l = {
|
|
2
2
|
common: a,
|
|
3
3
|
components: e
|
|
4
4
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Avatar.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/Avatar/Avatar.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"Avatar.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/Avatar/Avatar.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAsC3C;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,MAAM,GAAI,4EASpB,WAAW,4CA+Cb,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as b, jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import { cva as l } from "class-variance-authority";
|
|
3
|
-
import { useState as
|
|
4
|
-
import { useCommonTranslation as
|
|
5
|
-
import { User as
|
|
3
|
+
import { useState as g, useEffect as x } from "react";
|
|
4
|
+
import { useCommonTranslation as h } from "../../../i18n/useCommonTranslation.js";
|
|
5
|
+
import { User as j } from "../../Symbols/Icons/User.js";
|
|
6
6
|
const n = {
|
|
7
7
|
root: l(
|
|
8
8
|
"relative inline-flex items-center justify-center rounded-full bg-muted-transparent transition-colors",
|
|
@@ -11,7 +11,8 @@ const n = {
|
|
|
11
11
|
size: {
|
|
12
12
|
sm: "size-40 p-4",
|
|
13
13
|
md: "size-48 p-4",
|
|
14
|
-
lg: "size-
|
|
14
|
+
lg: "size-56 p-4",
|
|
15
|
+
xl: "size-72 p-4"
|
|
15
16
|
}
|
|
16
17
|
},
|
|
17
18
|
defaultVariants: {
|
|
@@ -24,54 +25,56 @@ const n = {
|
|
|
24
25
|
size: {
|
|
25
26
|
sm: "size-10",
|
|
26
27
|
md: "size-12",
|
|
27
|
-
lg: "size-
|
|
28
|
+
lg: "size-14",
|
|
29
|
+
xl: "size-16"
|
|
28
30
|
}
|
|
29
31
|
}
|
|
30
32
|
})
|
|
31
33
|
}, A = {
|
|
32
34
|
sm: 16,
|
|
33
35
|
md: 24,
|
|
34
|
-
lg: 32
|
|
36
|
+
lg: 32,
|
|
37
|
+
xl: 40
|
|
35
38
|
}, S = ({
|
|
36
39
|
ref: m,
|
|
37
40
|
className: d,
|
|
38
|
-
src:
|
|
41
|
+
src: e,
|
|
39
42
|
alt: c,
|
|
40
|
-
size:
|
|
43
|
+
size: a = "md",
|
|
41
44
|
imgLoading: f,
|
|
42
45
|
showNotification: t = !1,
|
|
43
46
|
...u
|
|
44
47
|
}) => {
|
|
45
|
-
const { t: o } =
|
|
46
|
-
return
|
|
48
|
+
const { t: o } = h(), [p, i] = g(!1), v = !e || p, s = c || o("components.avatar.defaultAlt"), z = t ? `${s}, ${o("components.avatar.notificationAriaLabel")}` : s;
|
|
49
|
+
return x(() => {
|
|
47
50
|
i(!1);
|
|
48
|
-
}, [
|
|
51
|
+
}, [e]), /* @__PURE__ */ b(
|
|
49
52
|
"div",
|
|
50
53
|
{
|
|
51
54
|
ref: m,
|
|
52
|
-
className: n.root({ size:
|
|
55
|
+
className: n.root({ size: a, className: d }),
|
|
53
56
|
role: "img",
|
|
54
|
-
"aria-label":
|
|
57
|
+
"aria-label": z,
|
|
55
58
|
...u,
|
|
56
59
|
children: [
|
|
57
60
|
t && /* @__PURE__ */ r(
|
|
58
61
|
"div",
|
|
59
62
|
{
|
|
60
|
-
className: n.notification({ size:
|
|
63
|
+
className: n.notification({ size: a }),
|
|
61
64
|
"aria-hidden": "true"
|
|
62
65
|
}
|
|
63
66
|
),
|
|
64
67
|
v ? /* @__PURE__ */ r(
|
|
65
|
-
|
|
68
|
+
j,
|
|
66
69
|
{
|
|
67
|
-
size: A[
|
|
70
|
+
size: A[a],
|
|
68
71
|
"aria-label": "Fallback Icon",
|
|
69
72
|
"aria-hidden": "true"
|
|
70
73
|
}
|
|
71
74
|
) : /* @__PURE__ */ r(
|
|
72
75
|
"img",
|
|
73
76
|
{
|
|
74
|
-
src:
|
|
77
|
+
src: e,
|
|
75
78
|
alt: "",
|
|
76
79
|
loading: f,
|
|
77
80
|
onError: () => i(!0),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/Avatar/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,OAAO,CAAC;AAEnD,MAAM,MAAM,WAAW,GAAG;IACxB;;;OAGG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;;OAGG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/Avatar/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,OAAO,CAAC;AAEnD,MAAM,MAAM,WAAW,GAAG;IACxB;;;OAGG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;;OAGG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IACjC;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;;;OAMG;IACH,UAAU,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;CAC/B,GAAG,qBAAqB,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DotIndicator.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/DotIndicator/DotIndicator.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"DotIndicator.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/DotIndicator/DotIndicator.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AA0BjD,wBAAgB,YAAY,CAAC,EAC3B,IAAW,EACX,UAAmB,EACnB,QAAQ,EAAE,YAAoB,EAC9B,QAAQ,EACR,SAAS,EACT,YAAY,EAAE,SAAS,EACvB,GAAG,EACH,GAAG,KAAK,EACT,EAAE,iBAAiB,2CAyBnB;yBAlCe,YAAY"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/DotIndicator/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAE9D,MAAM,MAAM,iBAAiB,GAAG;IAC9B;;;OAGG;IACH,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/DotIndicator/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAE9D,MAAM,MAAM,iBAAiB,GAAG;IAC9B;;;OAGG;IACH,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IACjC;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC;IAC5B;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;OAGG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB,GAAG,IAAI,CAAC,qBAAqB,CAAC,KAAK,CAAC,EAAE,UAAU,CAAC,CAAC"}
|
|
@@ -19,7 +19,7 @@ import { MediaButtonProps } from './types';
|
|
|
19
19
|
* </MediaButton>
|
|
20
20
|
*
|
|
21
21
|
* // With rounded crypto icon
|
|
22
|
-
* <MediaButton icon={<CryptoIcon ledgerId="bitcoin" size=
|
|
22
|
+
* <MediaButton icon={<CryptoIcon ledgerId="bitcoin" size={32} />} iconType="rounded">
|
|
23
23
|
* Bitcoin
|
|
24
24
|
* </MediaButton>
|
|
25
25
|
*
|
|
@@ -1,15 +1,20 @@
|
|
|
1
|
-
import { MediaImageProps } from './types';
|
|
1
|
+
import { MediaImageProps, MediaImageSize } from './types';
|
|
2
|
+
export declare const fontSizeMap: Record<MediaImageSize, number>;
|
|
2
3
|
/**
|
|
3
4
|
* A generic media image component that displays an image with optional shape variants.
|
|
4
5
|
* Supports square and circular appearances with consistent sizing.
|
|
5
6
|
*
|
|
6
|
-
* When the image fails to load or no src is provided, displays a
|
|
7
|
-
* or
|
|
7
|
+
* When the image fails to load or no src is provided, displays a fallback letter (if `fallback`
|
|
8
|
+
* is provided) or a muted background placeholder.
|
|
9
|
+
*
|
|
10
|
+
* While `loading` is true, a pulsing skeleton overlay is shown regardless of `src`.
|
|
8
11
|
*
|
|
9
12
|
* @example
|
|
10
13
|
* import { MediaImage } from '@ledgerhq/lumen-ui-react';
|
|
11
14
|
*
|
|
12
15
|
* <MediaImage src="https://example.com/icon.png" alt="Bitcoin" size={32} />
|
|
16
|
+
* <MediaImage fallback="Bitcoin" size={32} />
|
|
17
|
+
* <MediaImage loading size={32} />
|
|
13
18
|
*/
|
|
14
|
-
export declare const MediaImage: ({ ref, className, src, alt, size, shape, imgLoading, ...props }: MediaImageProps) => import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
export declare const MediaImage: ({ ref, className, src, alt, size, shape, imgLoading, fallback, loading, ...props }: MediaImageProps) => import("react/jsx-runtime").JSX.Element;
|
|
15
20
|
//# sourceMappingURL=MediaImage.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MediaImage.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/MediaImage/MediaImage.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"MediaImage.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/MediaImage/MediaImage.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAE/D,eAAO,MAAM,WAAW,EAAE,MAAM,CAAC,cAAc,EAAE,MAAM,CAUtD,CAAC;AA2BF;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,UAAU,GAAI,oFAWxB,eAAe,4CAyCjB,CAAC"}
|
|
@@ -1,10 +1,21 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { cn as
|
|
3
|
-
import { cva as
|
|
4
|
-
import { useState as
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { jsxs as p, jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import { cn as z } from "../../../libs/utils-shared/dist/index.js";
|
|
3
|
+
import { cva as h } from "class-variance-authority";
|
|
4
|
+
import { useState as x, useEffect as g } from "react";
|
|
5
|
+
import { Skeleton as v } from "../Skeleton/Skeleton.js";
|
|
6
|
+
const N = {
|
|
7
|
+
12: 10,
|
|
8
|
+
16: 10,
|
|
9
|
+
20: 12,
|
|
10
|
+
24: 14,
|
|
11
|
+
32: 16,
|
|
12
|
+
40: 18,
|
|
13
|
+
48: 24,
|
|
14
|
+
56: 24,
|
|
15
|
+
64: 24
|
|
16
|
+
}, b = {
|
|
17
|
+
root: h(
|
|
18
|
+
"relative inline-flex shrink-0 items-center justify-center overflow-hidden bg-muted outline-1 -outline-offset-1 outline-icon",
|
|
8
19
|
{
|
|
9
20
|
variants: {
|
|
10
21
|
size: {
|
|
@@ -25,41 +36,57 @@ const h = {
|
|
|
25
36
|
}
|
|
26
37
|
}
|
|
27
38
|
)
|
|
28
|
-
},
|
|
29
|
-
ref:
|
|
30
|
-
className:
|
|
31
|
-
src:
|
|
32
|
-
alt:
|
|
33
|
-
size:
|
|
34
|
-
shape:
|
|
35
|
-
imgLoading:
|
|
36
|
-
|
|
39
|
+
}, I = ({
|
|
40
|
+
ref: a,
|
|
41
|
+
className: d,
|
|
42
|
+
src: r,
|
|
43
|
+
alt: l,
|
|
44
|
+
size: i = 48,
|
|
45
|
+
shape: u = "square",
|
|
46
|
+
imgLoading: m = "eager",
|
|
47
|
+
fallback: t,
|
|
48
|
+
loading: e = !1,
|
|
49
|
+
...c
|
|
37
50
|
}) => {
|
|
38
|
-
const [
|
|
51
|
+
const [f, n] = x(!1), o = !r || f;
|
|
39
52
|
return g(() => {
|
|
40
|
-
|
|
41
|
-
}, [
|
|
53
|
+
n(!1);
|
|
54
|
+
}, [r]), /* @__PURE__ */ p(
|
|
42
55
|
"div",
|
|
43
56
|
{
|
|
44
|
-
ref:
|
|
45
|
-
className:
|
|
57
|
+
ref: a,
|
|
58
|
+
className: z(b.root({ size: i, shape: u }), d),
|
|
46
59
|
role: "img",
|
|
47
|
-
"aria-label":
|
|
48
|
-
...
|
|
49
|
-
children:
|
|
50
|
-
"
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
+
"aria-label": l,
|
|
61
|
+
...c,
|
|
62
|
+
children: [
|
|
63
|
+
e && /* @__PURE__ */ s(v, { className: "absolute inset-0" }),
|
|
64
|
+
!e && o && t && /* @__PURE__ */ s(
|
|
65
|
+
"span",
|
|
66
|
+
{
|
|
67
|
+
className: "text-base select-none",
|
|
68
|
+
style: { fontSize: N[i] },
|
|
69
|
+
"aria-hidden": "true",
|
|
70
|
+
children: t[0]?.toUpperCase()
|
|
71
|
+
}
|
|
72
|
+
),
|
|
73
|
+
!e && o && !t && /* @__PURE__ */ s("span", { className: "text-muted select-none", "aria-hidden": "true" }),
|
|
74
|
+
!e && !o && /* @__PURE__ */ s(
|
|
75
|
+
"img",
|
|
76
|
+
{
|
|
77
|
+
src: r,
|
|
78
|
+
alt: "",
|
|
79
|
+
loading: m,
|
|
80
|
+
onError: () => n(!0),
|
|
81
|
+
className: "size-full object-cover",
|
|
82
|
+
"aria-hidden": "true"
|
|
83
|
+
}
|
|
84
|
+
)
|
|
85
|
+
]
|
|
60
86
|
}
|
|
61
87
|
);
|
|
62
88
|
};
|
|
63
89
|
export {
|
|
64
|
-
|
|
90
|
+
I as MediaImage,
|
|
91
|
+
N as fontSizeMap
|
|
65
92
|
};
|
|
@@ -29,6 +29,18 @@ export type MediaImageProps = {
|
|
|
29
29
|
* Alternative text for the image, used for accessibility.
|
|
30
30
|
*/
|
|
31
31
|
alt?: string;
|
|
32
|
+
/**
|
|
33
|
+
* Text used to derive a single-letter fallback when no `src` is provided or the image fails to load.
|
|
34
|
+
* The first character is displayed, uppercased.
|
|
35
|
+
* @optional
|
|
36
|
+
*/
|
|
37
|
+
fallback?: string;
|
|
38
|
+
/**
|
|
39
|
+
* When true, displays a pulsing skeleton placeholder instead of the image or fallback.
|
|
40
|
+
* @optional
|
|
41
|
+
* @default false
|
|
42
|
+
*/
|
|
43
|
+
loading?: boolean;
|
|
32
44
|
/**
|
|
33
45
|
* Additional custom CSS classes to apply. Do not use this prop to modify the component's core appearance.
|
|
34
46
|
* @optional
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/MediaImage/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,OAAO,CAAC;AAEnD,MAAM,MAAM,cAAc,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC;AAExE,MAAM,MAAM,eAAe,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAElD,MAAM,MAAM,eAAe,GAAG;IAC5B;;;OAGG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;;OAGG;IACH,KAAK,CAAC,EAAE,eAAe,CAAC;IACxB;;;OAGG;IACH,IAAI,CAAC,EAAE,cAAc,CAAC;IACtB;;;;;;OAMG;IACH,UAAU,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;IAC9B;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,GAAG,qBAAqB,CAAC,KAAK,CAAC,CAAC"}
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/MediaImage/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,OAAO,CAAC;AAEnD,MAAM,MAAM,cAAc,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC;AAExE,MAAM,MAAM,eAAe,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAElD,MAAM,MAAM,eAAe,GAAG;IAC5B;;;OAGG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;;OAGG;IACH,KAAK,CAAC,EAAE,eAAe,CAAC;IACxB;;;OAGG;IACH,IAAI,CAAC,EAAE,cAAc,CAAC;IACtB;;;;;;OAMG;IACH,UAAU,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;IAC9B;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,GAAG,qBAAqB,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -7,7 +7,7 @@ import { NavBarBackButtonProps, NavBarCoinCapsuleProps, NavBarDescriptionProps,
|
|
|
7
7
|
* import { NavBar, NavBarBackButton, NavBarCoinCapsule, NavBarTrailing } from '@ledgerhq/lumen-ui-react';
|
|
8
8
|
* import { CryptoIcon } from '@ledgerhq/crypto-icons';
|
|
9
9
|
*
|
|
10
|
-
* <NavBarCoinCapsule ticker="BTC" icon={<CryptoIcon ledgerId="bitcoin" ticker="BTC" size=
|
|
10
|
+
* <NavBarCoinCapsule ticker="BTC" icon={<CryptoIcon ledgerId="bitcoin" ticker="BTC" size={24} />} />
|
|
11
11
|
*/
|
|
12
12
|
export declare const NavBarCoinCapsule: ({ ref, ticker, icon, className, }: NavBarCoinCapsuleProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
13
|
/**
|
|
@@ -84,7 +84,7 @@ export declare const NavBarTrailing: ({ ref, children, className, ...props }: Na
|
|
|
84
84
|
*
|
|
85
85
|
* <NavBar>
|
|
86
86
|
* <NavBarBackButton onClick={handleBack} />
|
|
87
|
-
* <NavBarCoinCapsule ticker="BTC" icon={<CryptoIcon ledgerId="bitcoin" ticker="BTC" size=
|
|
87
|
+
* <NavBarCoinCapsule ticker="BTC" icon={<CryptoIcon ledgerId="bitcoin" ticker="BTC" size={24} />} />
|
|
88
88
|
* <NavBarTrailing>
|
|
89
89
|
* <IconButton icon={MoreHorizontal} aria-label="More options" />
|
|
90
90
|
* </NavBarTrailing>
|
package/dist/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ledgerhq/lumen-ui-react",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.28",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"keywords": [
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"@radix-ui/react-tooltip": "^1.2.8",
|
|
56
56
|
"class-variance-authority": "^0.7.1",
|
|
57
57
|
"@tanstack/react-table": "^8.21.3",
|
|
58
|
-
"@ledgerhq/lumen-design-core": "0.1.
|
|
58
|
+
"@ledgerhq/lumen-design-core": "0.1.12",
|
|
59
59
|
"clsx": "^2.1.1",
|
|
60
60
|
"react": "^18.0.0 || ^19.0.0",
|
|
61
61
|
"react-dom": "^18.0.0 || ^19.0.0",
|