@ledgerhq/lumen-ui-rnative 0.1.64 → 0.1.66
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/module/index.js +1 -1
- package/dist/module/index.js.map +1 -1
- package/dist/module/lib/Components/core/AddressInput/AddressInput.js +1 -1
- package/dist/module/lib/Components/core/AddressInput/AddressInput.js.map +1 -1
- package/dist/module/lib/Components/core/AmountDisplay/AmountDisplay.js +1 -1
- package/dist/module/lib/Components/core/AmountDisplay/AmountDisplay.js.map +1 -1
- package/dist/module/lib/Components/core/AmountInput/AmountInput.js +1 -1
- package/dist/module/lib/Components/core/AmountInput/AmountInput.js.map +1 -1
- package/dist/module/lib/Components/core/Avatar/Avatar.js +1 -1
- package/dist/module/lib/Components/core/Avatar/Avatar.js.map +1 -1
- package/dist/module/lib/Components/core/Banner/Banner.js +1 -1
- package/dist/module/lib/Components/core/Banner/Banner.js.map +1 -1
- package/dist/module/lib/Components/core/BottomSheet/BottomSheetHeader.js +1 -1
- package/dist/module/lib/Components/core/BottomSheet/BottomSheetHeader.js.map +1 -1
- package/dist/module/lib/Components/core/CardButton/CardButton.js +2 -0
- package/dist/module/lib/Components/core/CardButton/CardButton.js.map +1 -1
- package/dist/module/lib/Components/core/CardButton/CardButton.mdx +4 -0
- package/dist/module/lib/Components/core/CardButton/CardButton.stories.js +1 -0
- package/dist/module/lib/Components/core/CardButton/CardButton.stories.js.map +1 -1
- package/dist/module/lib/Components/core/ContentBanner/ContentBanner.js +1 -1
- package/dist/module/lib/Components/core/ContentBanner/ContentBanner.js.map +1 -1
- package/dist/module/lib/Components/core/Link/Link.figma.js +2 -1
- package/dist/module/lib/Components/core/Link/Link.figma.js.map +1 -1
- package/dist/module/lib/Components/core/Link/Link.js +5 -3
- package/dist/module/lib/Components/core/Link/Link.js.map +1 -1
- package/dist/module/lib/Components/core/Link/Link.mdx +3 -2
- package/dist/module/lib/Components/core/Link/Link.stories.js +4 -1
- package/dist/module/lib/Components/core/Link/Link.stories.js.map +1 -1
- package/dist/module/lib/Components/core/Link/Link.test.js +2 -2
- package/dist/module/lib/Components/core/Link/Link.test.js.map +1 -1
- package/dist/module/lib/Components/core/MediaBanner/MediaBanner.js +1 -1
- package/dist/module/lib/Components/core/MediaBanner/MediaBanner.js.map +1 -1
- package/dist/module/lib/Components/core/MediaCard/MediaCard.js +1 -1
- package/dist/module/lib/Components/core/MediaCard/MediaCard.js.map +1 -1
- package/dist/module/lib/Components/core/NavBar/NavBar.js +1 -1
- package/dist/module/lib/Components/core/NavBar/NavBar.js.map +1 -1
- package/dist/module/lib/Components/core/Spinner/Spinner.js +1 -1
- package/dist/module/lib/Components/core/Spinner/Spinner.js.map +1 -1
- package/dist/module/lib/Components/core/Stepper/Stepper.js +77 -31
- package/dist/module/lib/Components/core/Stepper/Stepper.js.map +1 -1
- package/dist/module/lib/Components/core/Stepper/Stepper.mdx +37 -16
- package/dist/module/lib/Components/core/Stepper/Stepper.stories.js +102 -2
- package/dist/module/lib/Components/core/Stepper/Stepper.stories.js.map +1 -1
- package/dist/module/lib/Components/core/Stepper/Stepper.test.js +32 -1
- package/dist/module/lib/Components/core/Stepper/Stepper.test.js.map +1 -1
- package/dist/module/lib/Components/core/Subheader/Subheader.js +5 -1
- package/dist/module/lib/Components/core/Subheader/Subheader.js.map +1 -1
- package/dist/module/lib/Components/core/ThemeProvider/ThemeProvider.js +2 -2
- package/dist/module/lib/Components/core/ThemeProvider/ThemeProvider.js.map +1 -1
- package/dist/module/lib/Components/core/ThemeProvider/ThemeProvider.test.js +9 -0
- package/dist/module/lib/Components/core/ThemeProvider/ThemeProvider.test.js.map +1 -1
- package/dist/module/lib/Components/core/Timeline/Timeline.figma.js +83 -0
- package/dist/module/lib/Components/core/Timeline/Timeline.figma.js.map +1 -0
- package/dist/module/lib/Components/core/Timeline/Timeline.js +464 -0
- package/dist/module/lib/Components/core/Timeline/Timeline.js.map +1 -0
- package/dist/module/lib/Components/core/Timeline/Timeline.mdx +49 -0
- package/dist/module/lib/Components/core/Timeline/Timeline.stories.js +289 -0
- package/dist/module/lib/Components/core/Timeline/Timeline.stories.js.map +1 -0
- package/dist/module/lib/Components/core/Timeline/Timeline.test.js +234 -0
- package/dist/module/lib/Components/core/Timeline/Timeline.test.js.map +1 -0
- package/dist/module/lib/Components/core/Timeline/index.js +5 -0
- package/dist/module/lib/Components/core/Timeline/index.js.map +1 -0
- package/dist/module/lib/Components/core/Timeline/types.js +4 -0
- package/dist/module/lib/Components/core/Timeline/types.js.map +1 -0
- package/dist/module/lib/Components/core/Toast/Toast.figma.js +39 -0
- package/dist/module/lib/Components/core/Toast/Toast.figma.js.map +1 -0
- package/dist/module/lib/Components/core/Toast/Toast.js +138 -0
- package/dist/module/lib/Components/core/Toast/Toast.js.map +1 -0
- package/dist/module/lib/Components/core/Toast/Toast.mdx +203 -0
- package/dist/module/lib/Components/core/Toast/Toast.stories.js +238 -0
- package/dist/module/lib/Components/core/Toast/Toast.stories.js.map +1 -0
- package/dist/module/lib/Components/core/Toast/Toast.test.js +203 -0
- package/dist/module/lib/Components/core/Toast/Toast.test.js.map +1 -0
- package/dist/module/lib/Components/core/Toast/Toaster.js +147 -0
- package/dist/module/lib/Components/core/Toast/Toaster.js.map +1 -0
- package/dist/module/lib/Components/core/Toast/Toaster.test.js +732 -0
- package/dist/module/lib/Components/core/Toast/Toaster.test.js.map +1 -0
- package/dist/module/lib/Components/core/Toast/hooks/useToastAccessibility.js +70 -0
- package/dist/module/lib/Components/core/Toast/hooks/useToastAccessibility.js.map +1 -0
- package/dist/module/lib/Components/core/Toast/hooks/useToastCollapse.js +33 -0
- package/dist/module/lib/Components/core/Toast/hooks/useToastCollapse.js.map +1 -0
- package/dist/module/lib/Components/core/Toast/hooks/useToastGesture.js +224 -0
- package/dist/module/lib/Components/core/Toast/hooks/useToastGesture.js.map +1 -0
- package/dist/module/lib/Components/core/Toast/hooks/useToastMotion.js +82 -0
- package/dist/module/lib/Components/core/Toast/hooks/useToastMotion.js.map +1 -0
- package/dist/module/lib/Components/core/Toast/hooks/useToastViewportStyles.js +21 -0
- package/dist/module/lib/Components/core/Toast/hooks/useToastViewportStyles.js.map +1 -0
- package/dist/module/lib/Components/core/Toast/index.js +7 -0
- package/dist/module/lib/Components/core/Toast/index.js.map +1 -0
- package/dist/module/lib/Components/core/Toast/types.js +4 -0
- package/dist/module/lib/Components/core/Toast/types.js.map +1 -0
- package/dist/module/lib/Components/core/Trend/Trend.js +1 -1
- package/dist/module/lib/Components/core/Trend/Trend.js.map +1 -1
- package/dist/module/lib/Components/core/index.js +2 -0
- package/dist/module/lib/Components/core/index.js.map +1 -1
- package/dist/module/lib/Components/internal/BaseInput/BaseInput.js +1 -1
- package/dist/module/lib/Components/internal/BaseInput/BaseInput.js.map +1 -1
- package/dist/module/lib/Components/visualization/CartesianChart/CartesianChart.js +6 -2
- package/dist/module/lib/Components/visualization/CartesianChart/CartesianChart.js.map +1 -1
- package/dist/module/lib/Components/visualization/DonutChart/DonutChart.js +8 -4
- package/dist/module/lib/Components/visualization/DonutChart/DonutChart.js.map +1 -1
- package/dist/module/lib/Components/visualization/DonutChart/DonutChart.test.js +1 -1
- package/dist/module/lib/Components/visualization/DonutChart/DonutChart.test.js.map +1 -1
- package/dist/module/lib/Components/visualization/DonutChart/DonutRing.js +12 -3
- package/dist/module/lib/Components/visualization/DonutChart/DonutRing.js.map +1 -1
- package/dist/module/lib/Components/visualization/Legend/Legend.js +1 -1
- package/dist/module/lib/Components/visualization/Legend/Legend.js.map +1 -1
- package/dist/module/lib/Components/visualization/Legend/Legend.test.js +12 -8
- package/dist/module/lib/Components/visualization/Legend/Legend.test.js.map +1 -1
- package/dist/module/lib/Components/visualization/LineChart/LineChart.js +8 -2
- package/dist/module/lib/Components/visualization/LineChart/LineChart.js.map +1 -1
- package/dist/module/lib/Components/visualization/LineChart/utils.js +3 -2
- package/dist/module/lib/Components/visualization/LineChart/utils.js.map +1 -1
- package/dist/module/lib/Components/visualization/LineChart/utils.test.js +8 -4
- package/dist/module/lib/Components/visualization/LineChart/utils.test.js.map +1 -1
- package/dist/module/lib/Components/visualization/config.js +1 -4
- package/dist/module/lib/Components/visualization/config.js.map +1 -1
- package/dist/module/translations/index.js +5 -0
- package/dist/module/translations/index.js.map +1 -0
- package/dist/module/{i18n → translations}/languages.js +0 -6
- package/dist/module/translations/languages.js.map +1 -0
- package/dist/module/{i18n → translations}/locales/de.json +0 -3
- package/{src/i18n → dist/module/translations}/locales/en.json +9 -3
- package/{src/i18n → dist/module/translations}/locales/es.json +0 -3
- package/dist/module/{i18n → translations}/locales/fr.json +0 -3
- package/{src/i18n → dist/module/translations}/locales/ja.json +0 -3
- package/dist/module/{i18n → translations}/locales/ko.json +0 -3
- package/dist/module/{i18n → translations}/locales/pt.json +0 -3
- package/dist/module/{i18n → translations}/locales/ru.json +0 -3
- package/dist/module/{i18n → translations}/locales/th.json +0 -3
- package/dist/module/{i18n → translations}/locales/tr.json +0 -3
- package/{src/i18n → dist/module/translations}/locales/zh.json +0 -3
- package/dist/module/translations/translations.js +36 -0
- package/dist/module/translations/translations.js.map +1 -0
- package/dist/module/translations/translations.test.js +34 -0
- package/dist/module/translations/translations.test.js.map +1 -0
- package/dist/typescript/src/index.d.ts +1 -1
- package/dist/typescript/src/index.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/core/CardButton/CardButton.d.ts +2 -0
- package/dist/typescript/src/lib/Components/core/CardButton/CardButton.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/core/Link/Link.d.ts +1 -1
- package/dist/typescript/src/lib/Components/core/Link/Link.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/core/Link/types.d.ts +1 -1
- package/dist/typescript/src/lib/Components/core/Link/types.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/core/Stepper/Stepper.d.ts +4 -3
- package/dist/typescript/src/lib/Components/core/Stepper/Stepper.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/core/Stepper/types.d.ts +12 -2
- package/dist/typescript/src/lib/Components/core/Stepper/types.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/core/Subheader/Subheader.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/core/ThemeProvider/types.d.ts +1 -1
- package/dist/typescript/src/lib/Components/core/ThemeProvider/types.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/core/Timeline/Timeline.d.ts +56 -0
- package/dist/typescript/src/lib/Components/core/Timeline/Timeline.d.ts.map +1 -0
- package/dist/typescript/src/lib/Components/core/Timeline/index.d.ts +3 -0
- package/dist/typescript/src/lib/Components/core/Timeline/index.d.ts.map +1 -0
- package/dist/typescript/src/lib/Components/core/Timeline/types.d.ts +109 -0
- package/dist/typescript/src/lib/Components/core/Timeline/types.d.ts.map +1 -0
- package/dist/typescript/src/lib/Components/core/Toast/Toast.d.ts +24 -0
- package/dist/typescript/src/lib/Components/core/Toast/Toast.d.ts.map +1 -0
- package/dist/typescript/src/lib/Components/core/Toast/Toaster.d.ts +35 -0
- package/dist/typescript/src/lib/Components/core/Toast/Toaster.d.ts.map +1 -0
- package/dist/typescript/src/lib/Components/core/Toast/hooks/useToastAccessibility.d.ts +17 -0
- package/dist/typescript/src/lib/Components/core/Toast/hooks/useToastAccessibility.d.ts.map +1 -0
- package/dist/typescript/src/lib/Components/core/Toast/hooks/useToastCollapse.d.ts +19 -0
- package/dist/typescript/src/lib/Components/core/Toast/hooks/useToastCollapse.d.ts.map +1 -0
- package/dist/typescript/src/lib/Components/core/Toast/hooks/useToastGesture.d.ts +14 -0
- package/dist/typescript/src/lib/Components/core/Toast/hooks/useToastGesture.d.ts.map +1 -0
- package/dist/typescript/src/lib/Components/core/Toast/hooks/useToastMotion.d.ts +15 -0
- package/dist/typescript/src/lib/Components/core/Toast/hooks/useToastMotion.d.ts.map +1 -0
- package/dist/typescript/src/lib/Components/core/Toast/hooks/useToastViewportStyles.d.ts +21 -0
- package/dist/typescript/src/lib/Components/core/Toast/hooks/useToastViewportStyles.d.ts.map +1 -0
- package/dist/typescript/src/lib/Components/core/Toast/index.d.ts +5 -0
- package/dist/typescript/src/lib/Components/core/Toast/index.d.ts.map +1 -0
- package/dist/typescript/src/lib/Components/core/Toast/types.d.ts +75 -0
- package/dist/typescript/src/lib/Components/core/Toast/types.d.ts.map +1 -0
- package/dist/typescript/src/lib/Components/core/index.d.ts +2 -0
- package/dist/typescript/src/lib/Components/core/index.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/visualization/CartesianChart/CartesianChart.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/visualization/CartesianChart/types.d.ts +1 -1
- package/dist/typescript/src/lib/Components/visualization/DonutChart/DonutChart.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/visualization/DonutChart/DonutRing.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/visualization/DonutChart/types.d.ts +1 -1
- package/dist/typescript/src/lib/Components/visualization/Legend/Legend.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/visualization/Legend/types.d.ts +2 -2
- package/dist/typescript/src/lib/Components/visualization/LineChart/LineChart.d.ts +1 -1
- package/dist/typescript/src/lib/Components/visualization/LineChart/LineChart.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/visualization/LineChart/types.d.ts +1 -1
- package/dist/typescript/src/lib/Components/visualization/LineChart/utils.d.ts +2 -1
- package/dist/typescript/src/lib/Components/visualization/LineChart/utils.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/visualization/config.d.ts +0 -3
- package/dist/typescript/src/lib/Components/visualization/config.d.ts.map +1 -1
- package/dist/typescript/src/translations/index.d.ts +3 -0
- package/dist/typescript/src/translations/index.d.ts.map +1 -0
- package/dist/typescript/src/{i18n → translations}/languages.d.ts +0 -5
- package/dist/typescript/src/translations/languages.d.ts.map +1 -0
- package/dist/typescript/src/translations/translations.d.ts +421 -0
- package/dist/typescript/src/translations/translations.d.ts.map +1 -0
- package/package.json +4 -6
- package/src/index.ts +1 -1
- package/src/lib/Components/core/AddressInput/AddressInput.tsx +1 -1
- package/src/lib/Components/core/AmountDisplay/AmountDisplay.tsx +1 -1
- package/src/lib/Components/core/AmountInput/AmountInput.tsx +1 -1
- package/src/lib/Components/core/Avatar/Avatar.tsx +1 -1
- package/src/lib/Components/core/Banner/Banner.tsx +1 -1
- package/src/lib/Components/core/BottomSheet/BottomSheetHeader.tsx +1 -1
- package/src/lib/Components/core/CardButton/CardButton.mdx +4 -0
- package/src/lib/Components/core/CardButton/CardButton.stories.tsx +1 -0
- package/src/lib/Components/core/CardButton/CardButton.tsx +2 -0
- package/src/lib/Components/core/ContentBanner/ContentBanner.tsx +1 -1
- package/src/lib/Components/core/Link/Link.figma.tsx +1 -0
- package/src/lib/Components/core/Link/Link.mdx +3 -2
- package/src/lib/Components/core/Link/Link.stories.tsx +3 -2
- package/src/lib/Components/core/Link/Link.test.tsx +2 -0
- package/src/lib/Components/core/Link/Link.tsx +3 -1
- package/src/lib/Components/core/Link/types.ts +1 -1
- package/src/lib/Components/core/MediaBanner/MediaBanner.tsx +1 -1
- package/src/lib/Components/core/MediaCard/MediaCard.tsx +1 -1
- package/src/lib/Components/core/NavBar/NavBar.tsx +1 -1
- package/src/lib/Components/core/Spinner/Spinner.tsx +1 -1
- package/src/lib/Components/core/Stepper/Stepper.mdx +37 -16
- package/src/lib/Components/core/Stepper/Stepper.stories.tsx +50 -2
- package/src/lib/Components/core/Stepper/Stepper.test.tsx +29 -1
- package/src/lib/Components/core/Stepper/Stepper.tsx +74 -33
- package/src/lib/Components/core/Stepper/types.ts +12 -2
- package/src/lib/Components/core/Subheader/Subheader.tsx +3 -1
- package/src/lib/Components/core/ThemeProvider/ThemeProvider.test.tsx +11 -0
- package/src/lib/Components/core/ThemeProvider/ThemeProvider.tsx +3 -3
- package/src/lib/Components/core/ThemeProvider/types.ts +1 -1
- package/src/lib/Components/core/Timeline/Timeline.figma.tsx +79 -0
- package/src/lib/Components/core/Timeline/Timeline.mdx +49 -0
- package/src/lib/Components/core/Timeline/Timeline.stories.tsx +250 -0
- package/src/lib/Components/core/Timeline/Timeline.test.tsx +275 -0
- package/src/lib/Components/core/Timeline/Timeline.tsx +576 -0
- package/src/lib/Components/core/Timeline/index.ts +2 -0
- package/src/lib/Components/core/Timeline/types.ts +124 -0
- package/src/lib/Components/core/Toast/Toast.figma.tsx +36 -0
- package/src/lib/Components/core/Toast/Toast.mdx +203 -0
- package/src/lib/Components/core/Toast/Toast.stories.tsx +260 -0
- package/src/lib/Components/core/Toast/Toast.test.tsx +181 -0
- package/src/lib/Components/core/Toast/Toast.tsx +163 -0
- package/src/lib/Components/core/Toast/Toaster.test.tsx +687 -0
- package/src/lib/Components/core/Toast/Toaster.tsx +157 -0
- package/src/lib/Components/core/Toast/hooks/useToastAccessibility.ts +82 -0
- package/src/lib/Components/core/Toast/hooks/useToastCollapse.ts +38 -0
- package/src/lib/Components/core/Toast/hooks/useToastGesture.ts +83 -0
- package/src/lib/Components/core/Toast/hooks/useToastMotion.ts +71 -0
- package/src/lib/Components/core/Toast/hooks/useToastViewportStyles.ts +45 -0
- package/src/lib/Components/core/Toast/index.ts +4 -0
- package/src/lib/Components/core/Toast/types.ts +94 -0
- package/src/lib/Components/core/Trend/Trend.tsx +1 -1
- package/src/lib/Components/core/index.ts +2 -0
- package/src/lib/Components/internal/BaseInput/BaseInput.tsx +1 -1
- package/src/lib/Components/visualization/CartesianChart/CartesianChart.tsx +4 -2
- package/src/lib/Components/visualization/CartesianChart/types.ts +1 -1
- package/src/lib/Components/visualization/DonutChart/DonutChart.test.tsx +1 -3
- package/src/lib/Components/visualization/DonutChart/DonutChart.tsx +7 -3
- package/src/lib/Components/visualization/DonutChart/DonutRing.tsx +11 -1
- package/src/lib/Components/visualization/DonutChart/types.ts +1 -1
- package/src/lib/Components/visualization/Legend/Legend.test.tsx +9 -8
- package/src/lib/Components/visualization/Legend/Legend.tsx +1 -1
- package/src/lib/Components/visualization/Legend/types.ts +2 -2
- package/src/lib/Components/visualization/LineChart/LineChart.tsx +10 -2
- package/src/lib/Components/visualization/LineChart/types.ts +1 -1
- package/src/lib/Components/visualization/LineChart/utils.test.ts +4 -0
- package/src/lib/Components/visualization/LineChart/utils.ts +6 -2
- package/src/lib/Components/visualization/config.ts +0 -3
- package/src/translations/index.ts +2 -0
- package/src/{i18n → translations}/languages.ts +0 -6
- package/src/{i18n → translations}/locales/de.json +0 -3
- package/{dist/module/i18n → src/translations}/locales/en.json +9 -3
- package/{dist/module/i18n → src/translations}/locales/es.json +0 -3
- package/src/{i18n → translations}/locales/fr.json +0 -3
- package/{dist/module/i18n → src/translations}/locales/ja.json +0 -3
- package/src/{i18n → translations}/locales/ko.json +0 -3
- package/src/{i18n → translations}/locales/pt.json +0 -3
- package/src/{i18n → translations}/locales/ru.json +0 -3
- package/src/{i18n → translations}/locales/th.json +0 -3
- package/src/{i18n → translations}/locales/tr.json +0 -3
- package/{dist/module/i18n → src/translations}/locales/zh.json +0 -3
- package/src/translations/translations.test.ts +56 -0
- package/src/translations/translations.ts +21 -0
- package/dist/module/i18n/I18nProvider.js +0 -20
- package/dist/module/i18n/I18nProvider.js.map +0 -1
- package/dist/module/i18n/i18n.js +0 -82
- package/dist/module/i18n/i18n.js.map +0 -1
- package/dist/module/i18n/index.js +0 -6
- package/dist/module/i18n/index.js.map +0 -1
- package/dist/module/i18n/languages.js.map +0 -1
- package/dist/module/i18n/useCommonTranslation.js +0 -8
- package/dist/module/i18n/useCommonTranslation.js.map +0 -1
- package/dist/typescript/src/i18n/I18nProvider.d.ts +0 -8
- package/dist/typescript/src/i18n/I18nProvider.d.ts.map +0 -1
- package/dist/typescript/src/i18n/i18n.d.ts +0 -13
- package/dist/typescript/src/i18n/i18n.d.ts.map +0 -1
- package/dist/typescript/src/i18n/index.d.ts +0 -4
- package/dist/typescript/src/i18n/index.d.ts.map +0 -1
- package/dist/typescript/src/i18n/languages.d.ts.map +0 -1
- package/dist/typescript/src/i18n/useCommonTranslation.d.ts +0 -2
- package/dist/typescript/src/i18n/useCommonTranslation.d.ts.map +0 -1
- package/src/i18n/I18nProvider.tsx +0 -20
- package/src/i18n/i18n.ts +0 -107
- package/src/i18n/index.ts +0 -3
- package/src/i18n/useCommonTranslation.ts +0 -6
|
@@ -44,9 +44,4 @@ export declare const DEFAULT_LANGUAGE: "en";
|
|
|
44
44
|
* Supported locales type
|
|
45
45
|
*/
|
|
46
46
|
export type SupportedLocale = keyof typeof Languages;
|
|
47
|
-
/**
|
|
48
|
-
* Default namespace for i18n
|
|
49
|
-
* Currently there is only one namespace
|
|
50
|
-
*/
|
|
51
|
-
export declare const I18N_DEFAULT_NAMESPACE = "common";
|
|
52
47
|
//# sourceMappingURL=languages.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"languages.d.ts","sourceRoot":"","sources":["../../../../src/translations/languages.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkC6B,CAAC;AAEpD;;GAEG;AACH,eAAO,MAAM,gBAAgB,MAAkB,CAAC;AAEhD;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,MAAM,OAAO,SAAS,CAAC"}
|
|
@@ -0,0 +1,421 @@
|
|
|
1
|
+
export declare const dictionaries: {
|
|
2
|
+
de: {
|
|
3
|
+
common: {
|
|
4
|
+
closeAriaLabel: string;
|
|
5
|
+
};
|
|
6
|
+
components: {
|
|
7
|
+
addressInput: {
|
|
8
|
+
qrCodeAriaLabel: string;
|
|
9
|
+
};
|
|
10
|
+
amountDisplay: {
|
|
11
|
+
amountHiddenAriaLabel: string;
|
|
12
|
+
};
|
|
13
|
+
avatar: {
|
|
14
|
+
defaultAriaLabel: string;
|
|
15
|
+
};
|
|
16
|
+
baseInput: {
|
|
17
|
+
clearInputAriaLabel: string;
|
|
18
|
+
};
|
|
19
|
+
spinner: {
|
|
20
|
+
loadingAriaLabel: string;
|
|
21
|
+
};
|
|
22
|
+
bottomSheetHeader: {
|
|
23
|
+
goBackAriaLabel: string;
|
|
24
|
+
closeAriaLabel: string;
|
|
25
|
+
};
|
|
26
|
+
banner: {
|
|
27
|
+
closeAriaLabel: string;
|
|
28
|
+
};
|
|
29
|
+
stepper: {
|
|
30
|
+
progressAriaLabel: string;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
en: {
|
|
35
|
+
common: {
|
|
36
|
+
closeAriaLabel: string;
|
|
37
|
+
};
|
|
38
|
+
components: {
|
|
39
|
+
addressInput: {
|
|
40
|
+
qrCodeAriaLabel: string;
|
|
41
|
+
};
|
|
42
|
+
amountDisplay: {
|
|
43
|
+
amountHiddenAriaLabel: string;
|
|
44
|
+
};
|
|
45
|
+
avatar: {
|
|
46
|
+
defaultAriaLabel: string;
|
|
47
|
+
};
|
|
48
|
+
baseInput: {
|
|
49
|
+
clearInputAriaLabel: string;
|
|
50
|
+
};
|
|
51
|
+
spinner: {
|
|
52
|
+
loadingAriaLabel: string;
|
|
53
|
+
};
|
|
54
|
+
bottomSheetHeader: {
|
|
55
|
+
goBackAriaLabel: string;
|
|
56
|
+
closeAriaLabel: string;
|
|
57
|
+
};
|
|
58
|
+
banner: {
|
|
59
|
+
closeAriaLabel: string;
|
|
60
|
+
};
|
|
61
|
+
stepper: {
|
|
62
|
+
progressAriaLabel: string;
|
|
63
|
+
};
|
|
64
|
+
trend: {
|
|
65
|
+
positiveAriaLabel: string;
|
|
66
|
+
negativeAriaLabel: string;
|
|
67
|
+
neutralAriaLabel: string;
|
|
68
|
+
};
|
|
69
|
+
chart: {
|
|
70
|
+
emptyLabel: string;
|
|
71
|
+
loadingAriaLabel: string;
|
|
72
|
+
defaultAriaLabel: string;
|
|
73
|
+
selectedSegmentAriaLabel: string;
|
|
74
|
+
};
|
|
75
|
+
subheader: {
|
|
76
|
+
moreInfoAriaLabel: string;
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
};
|
|
80
|
+
es: {
|
|
81
|
+
common: {
|
|
82
|
+
closeAriaLabel: string;
|
|
83
|
+
};
|
|
84
|
+
components: {
|
|
85
|
+
addressInput: {
|
|
86
|
+
qrCodeAriaLabel: string;
|
|
87
|
+
};
|
|
88
|
+
amountDisplay: {
|
|
89
|
+
amountHiddenAriaLabel: string;
|
|
90
|
+
};
|
|
91
|
+
avatar: {
|
|
92
|
+
defaultAriaLabel: string;
|
|
93
|
+
};
|
|
94
|
+
baseInput: {
|
|
95
|
+
clearInputAriaLabel: string;
|
|
96
|
+
};
|
|
97
|
+
spinner: {
|
|
98
|
+
loadingAriaLabel: string;
|
|
99
|
+
};
|
|
100
|
+
bottomSheetHeader: {
|
|
101
|
+
goBackAriaLabel: string;
|
|
102
|
+
closeAriaLabel: string;
|
|
103
|
+
};
|
|
104
|
+
banner: {
|
|
105
|
+
closeAriaLabel: string;
|
|
106
|
+
};
|
|
107
|
+
stepper: {
|
|
108
|
+
progressAriaLabel: string;
|
|
109
|
+
};
|
|
110
|
+
};
|
|
111
|
+
};
|
|
112
|
+
fr: {
|
|
113
|
+
common: {
|
|
114
|
+
closeAriaLabel: string;
|
|
115
|
+
};
|
|
116
|
+
components: {
|
|
117
|
+
addressInput: {
|
|
118
|
+
qrCodeAriaLabel: string;
|
|
119
|
+
};
|
|
120
|
+
amountDisplay: {
|
|
121
|
+
amountHiddenAriaLabel: string;
|
|
122
|
+
};
|
|
123
|
+
avatar: {
|
|
124
|
+
defaultAriaLabel: string;
|
|
125
|
+
};
|
|
126
|
+
baseInput: {
|
|
127
|
+
clearInputAriaLabel: string;
|
|
128
|
+
};
|
|
129
|
+
spinner: {
|
|
130
|
+
loadingAriaLabel: string;
|
|
131
|
+
};
|
|
132
|
+
bottomSheetHeader: {
|
|
133
|
+
goBackAriaLabel: string;
|
|
134
|
+
closeAriaLabel: string;
|
|
135
|
+
};
|
|
136
|
+
banner: {
|
|
137
|
+
closeAriaLabel: string;
|
|
138
|
+
};
|
|
139
|
+
stepper: {
|
|
140
|
+
progressAriaLabel: string;
|
|
141
|
+
};
|
|
142
|
+
};
|
|
143
|
+
};
|
|
144
|
+
ja: {
|
|
145
|
+
common: {
|
|
146
|
+
closeAriaLabel: string;
|
|
147
|
+
};
|
|
148
|
+
components: {
|
|
149
|
+
addressInput: {
|
|
150
|
+
qrCodeAriaLabel: string;
|
|
151
|
+
};
|
|
152
|
+
amountDisplay: {
|
|
153
|
+
amountHiddenAriaLabel: string;
|
|
154
|
+
};
|
|
155
|
+
avatar: {
|
|
156
|
+
defaultAriaLabel: string;
|
|
157
|
+
};
|
|
158
|
+
baseInput: {
|
|
159
|
+
clearInputAriaLabel: string;
|
|
160
|
+
};
|
|
161
|
+
spinner: {
|
|
162
|
+
loadingAriaLabel: string;
|
|
163
|
+
};
|
|
164
|
+
bottomSheetHeader: {
|
|
165
|
+
goBackAriaLabel: string;
|
|
166
|
+
closeAriaLabel: string;
|
|
167
|
+
};
|
|
168
|
+
banner: {
|
|
169
|
+
closeAriaLabel: string;
|
|
170
|
+
};
|
|
171
|
+
stepper: {
|
|
172
|
+
progressAriaLabel: string;
|
|
173
|
+
};
|
|
174
|
+
};
|
|
175
|
+
};
|
|
176
|
+
ko: {
|
|
177
|
+
common: {
|
|
178
|
+
closeAriaLabel: string;
|
|
179
|
+
};
|
|
180
|
+
components: {
|
|
181
|
+
addressInput: {
|
|
182
|
+
qrCodeAriaLabel: string;
|
|
183
|
+
};
|
|
184
|
+
amountDisplay: {
|
|
185
|
+
amountHiddenAriaLabel: string;
|
|
186
|
+
};
|
|
187
|
+
avatar: {
|
|
188
|
+
defaultAriaLabel: string;
|
|
189
|
+
};
|
|
190
|
+
baseInput: {
|
|
191
|
+
clearInputAriaLabel: string;
|
|
192
|
+
};
|
|
193
|
+
spinner: {
|
|
194
|
+
loadingAriaLabel: string;
|
|
195
|
+
};
|
|
196
|
+
bottomSheetHeader: {
|
|
197
|
+
goBackAriaLabel: string;
|
|
198
|
+
closeAriaLabel: string;
|
|
199
|
+
};
|
|
200
|
+
banner: {
|
|
201
|
+
closeAriaLabel: string;
|
|
202
|
+
};
|
|
203
|
+
stepper: {
|
|
204
|
+
progressAriaLabel: string;
|
|
205
|
+
};
|
|
206
|
+
};
|
|
207
|
+
};
|
|
208
|
+
pt: {
|
|
209
|
+
common: {
|
|
210
|
+
closeAriaLabel: string;
|
|
211
|
+
};
|
|
212
|
+
components: {
|
|
213
|
+
addressInput: {
|
|
214
|
+
qrCodeAriaLabel: string;
|
|
215
|
+
};
|
|
216
|
+
amountDisplay: {
|
|
217
|
+
amountHiddenAriaLabel: string;
|
|
218
|
+
};
|
|
219
|
+
avatar: {
|
|
220
|
+
defaultAriaLabel: string;
|
|
221
|
+
};
|
|
222
|
+
baseInput: {
|
|
223
|
+
clearInputAriaLabel: string;
|
|
224
|
+
};
|
|
225
|
+
spinner: {
|
|
226
|
+
loadingAriaLabel: string;
|
|
227
|
+
};
|
|
228
|
+
bottomSheetHeader: {
|
|
229
|
+
goBackAriaLabel: string;
|
|
230
|
+
closeAriaLabel: string;
|
|
231
|
+
};
|
|
232
|
+
banner: {
|
|
233
|
+
closeAriaLabel: string;
|
|
234
|
+
};
|
|
235
|
+
stepper: {
|
|
236
|
+
progressAriaLabel: string;
|
|
237
|
+
};
|
|
238
|
+
};
|
|
239
|
+
};
|
|
240
|
+
ru: {
|
|
241
|
+
common: {
|
|
242
|
+
closeAriaLabel: string;
|
|
243
|
+
};
|
|
244
|
+
components: {
|
|
245
|
+
addressInput: {
|
|
246
|
+
qrCodeAriaLabel: string;
|
|
247
|
+
};
|
|
248
|
+
amountDisplay: {
|
|
249
|
+
amountHiddenAriaLabel: string;
|
|
250
|
+
};
|
|
251
|
+
avatar: {
|
|
252
|
+
defaultAriaLabel: string;
|
|
253
|
+
};
|
|
254
|
+
baseInput: {
|
|
255
|
+
clearInputAriaLabel: string;
|
|
256
|
+
};
|
|
257
|
+
spinner: {
|
|
258
|
+
loadingAriaLabel: string;
|
|
259
|
+
};
|
|
260
|
+
bottomSheetHeader: {
|
|
261
|
+
goBackAriaLabel: string;
|
|
262
|
+
closeAriaLabel: string;
|
|
263
|
+
};
|
|
264
|
+
banner: {
|
|
265
|
+
closeAriaLabel: string;
|
|
266
|
+
};
|
|
267
|
+
stepper: {
|
|
268
|
+
progressAriaLabel: string;
|
|
269
|
+
};
|
|
270
|
+
};
|
|
271
|
+
};
|
|
272
|
+
th: {
|
|
273
|
+
common: {
|
|
274
|
+
closeAriaLabel: string;
|
|
275
|
+
};
|
|
276
|
+
components: {
|
|
277
|
+
addressInput: {
|
|
278
|
+
qrCodeAriaLabel: string;
|
|
279
|
+
};
|
|
280
|
+
amountDisplay: {
|
|
281
|
+
amountHiddenAriaLabel: string;
|
|
282
|
+
};
|
|
283
|
+
avatar: {
|
|
284
|
+
defaultAriaLabel: string;
|
|
285
|
+
};
|
|
286
|
+
baseInput: {
|
|
287
|
+
clearInputAriaLabel: string;
|
|
288
|
+
};
|
|
289
|
+
spinner: {
|
|
290
|
+
loadingAriaLabel: string;
|
|
291
|
+
};
|
|
292
|
+
bottomSheetHeader: {
|
|
293
|
+
goBackAriaLabel: string;
|
|
294
|
+
closeAriaLabel: string;
|
|
295
|
+
};
|
|
296
|
+
banner: {
|
|
297
|
+
closeAriaLabel: string;
|
|
298
|
+
};
|
|
299
|
+
stepper: {
|
|
300
|
+
progressAriaLabel: string;
|
|
301
|
+
};
|
|
302
|
+
};
|
|
303
|
+
};
|
|
304
|
+
tr: {
|
|
305
|
+
common: {
|
|
306
|
+
closeAriaLabel: string;
|
|
307
|
+
};
|
|
308
|
+
components: {
|
|
309
|
+
addressInput: {
|
|
310
|
+
qrCodeAriaLabel: string;
|
|
311
|
+
};
|
|
312
|
+
amountDisplay: {
|
|
313
|
+
amountHiddenAriaLabel: string;
|
|
314
|
+
};
|
|
315
|
+
avatar: {
|
|
316
|
+
defaultAriaLabel: string;
|
|
317
|
+
};
|
|
318
|
+
baseInput: {
|
|
319
|
+
clearInputAriaLabel: string;
|
|
320
|
+
};
|
|
321
|
+
spinner: {
|
|
322
|
+
loadingAriaLabel: string;
|
|
323
|
+
};
|
|
324
|
+
bottomSheetHeader: {
|
|
325
|
+
goBackAriaLabel: string;
|
|
326
|
+
closeAriaLabel: string;
|
|
327
|
+
};
|
|
328
|
+
banner: {
|
|
329
|
+
closeAriaLabel: string;
|
|
330
|
+
};
|
|
331
|
+
stepper: {
|
|
332
|
+
progressAriaLabel: string;
|
|
333
|
+
};
|
|
334
|
+
};
|
|
335
|
+
};
|
|
336
|
+
zh: {
|
|
337
|
+
common: {
|
|
338
|
+
closeAriaLabel: string;
|
|
339
|
+
};
|
|
340
|
+
components: {
|
|
341
|
+
addressInput: {
|
|
342
|
+
qrCodeAriaLabel: string;
|
|
343
|
+
};
|
|
344
|
+
amountDisplay: {
|
|
345
|
+
amountHiddenAriaLabel: string;
|
|
346
|
+
};
|
|
347
|
+
avatar: {
|
|
348
|
+
defaultAriaLabel: string;
|
|
349
|
+
};
|
|
350
|
+
baseInput: {
|
|
351
|
+
clearInputAriaLabel: string;
|
|
352
|
+
};
|
|
353
|
+
spinner: {
|
|
354
|
+
loadingAriaLabel: string;
|
|
355
|
+
};
|
|
356
|
+
bottomSheetHeader: {
|
|
357
|
+
goBackAriaLabel: string;
|
|
358
|
+
closeAriaLabel: string;
|
|
359
|
+
};
|
|
360
|
+
banner: {
|
|
361
|
+
closeAriaLabel: string;
|
|
362
|
+
};
|
|
363
|
+
stepper: {
|
|
364
|
+
progressAriaLabel: string;
|
|
365
|
+
};
|
|
366
|
+
};
|
|
367
|
+
};
|
|
368
|
+
};
|
|
369
|
+
export declare const TranslationsProvider: import("react").FC<{
|
|
370
|
+
locale?: "de" | "en" | "es" | "fr" | "ja" | "ko" | "pt" | "ru" | "th" | "tr" | "zh" | undefined;
|
|
371
|
+
children: import("react").ReactNode;
|
|
372
|
+
}>, useCommonTranslation: () => {
|
|
373
|
+
locale: "de" | "en" | "es" | "fr" | "ja" | "ko" | "pt" | "ru" | "th" | "tr" | "zh";
|
|
374
|
+
t: import("@ledgerhq/lumen-utils-shared").Translate<{
|
|
375
|
+
common: {
|
|
376
|
+
closeAriaLabel: string;
|
|
377
|
+
};
|
|
378
|
+
components: {
|
|
379
|
+
addressInput: {
|
|
380
|
+
qrCodeAriaLabel: string;
|
|
381
|
+
};
|
|
382
|
+
amountDisplay: {
|
|
383
|
+
amountHiddenAriaLabel: string;
|
|
384
|
+
};
|
|
385
|
+
avatar: {
|
|
386
|
+
defaultAriaLabel: string;
|
|
387
|
+
};
|
|
388
|
+
baseInput: {
|
|
389
|
+
clearInputAriaLabel: string;
|
|
390
|
+
};
|
|
391
|
+
spinner: {
|
|
392
|
+
loadingAriaLabel: string;
|
|
393
|
+
};
|
|
394
|
+
bottomSheetHeader: {
|
|
395
|
+
goBackAriaLabel: string;
|
|
396
|
+
closeAriaLabel: string;
|
|
397
|
+
};
|
|
398
|
+
banner: {
|
|
399
|
+
closeAriaLabel: string;
|
|
400
|
+
};
|
|
401
|
+
stepper: {
|
|
402
|
+
progressAriaLabel: string;
|
|
403
|
+
};
|
|
404
|
+
trend: {
|
|
405
|
+
positiveAriaLabel: string;
|
|
406
|
+
negativeAriaLabel: string;
|
|
407
|
+
neutralAriaLabel: string;
|
|
408
|
+
};
|
|
409
|
+
chart: {
|
|
410
|
+
emptyLabel: string;
|
|
411
|
+
loadingAriaLabel: string;
|
|
412
|
+
defaultAriaLabel: string;
|
|
413
|
+
selectedSegmentAriaLabel: string;
|
|
414
|
+
};
|
|
415
|
+
subheader: {
|
|
416
|
+
moreInfoAriaLabel: string;
|
|
417
|
+
};
|
|
418
|
+
};
|
|
419
|
+
}>;
|
|
420
|
+
};
|
|
421
|
+
//# sourceMappingURL=translations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../../src/translations/translations.ts"],"names":[],"mappings":"AAcA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAiD,CAAC;AAE3E,eAAO,MAAQ,oBAAoB;;;IAAmB,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAItE,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ledgerhq/lumen-ui-rnative",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.66",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react-native",
|
|
@@ -49,13 +49,11 @@
|
|
|
49
49
|
"!**/*.tsbuildinfo"
|
|
50
50
|
],
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"@ledgerhq/lumen-utils-shared": "0.1.
|
|
52
|
+
"@ledgerhq/lumen-utils-shared": "0.1.16",
|
|
53
53
|
"@types/d3-scale": "^4.0.9",
|
|
54
54
|
"@types/d3-shape": "^3.1.8",
|
|
55
55
|
"d3-scale": "^4.0.2",
|
|
56
|
-
"d3-shape": "^3.2.0"
|
|
57
|
-
"i18next": "^23.7.0",
|
|
58
|
-
"react-i18next": "^14.0.0"
|
|
56
|
+
"d3-shape": "^3.2.0"
|
|
59
57
|
},
|
|
60
58
|
"devDependencies": {
|
|
61
59
|
"@types/react": "^19.0.0"
|
|
@@ -63,7 +61,7 @@
|
|
|
63
61
|
"peerDependencies": {
|
|
64
62
|
"@types/react": "^19.0.0",
|
|
65
63
|
"@gorhom/bottom-sheet": "^5.0.0",
|
|
66
|
-
"@ledgerhq/lumen-design-core": "0.1.
|
|
64
|
+
"@ledgerhq/lumen-design-core": "0.1.31",
|
|
67
65
|
"react": "^19.0.0",
|
|
68
66
|
"react-native": "~0.81.6",
|
|
69
67
|
"react-native-gesture-handler": ">=2.0.0",
|
package/src/index.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { type SupportedLocale, Languages } from './
|
|
1
|
+
export { type SupportedLocale, Languages } from './translations';
|
|
2
2
|
export { RuntimeConstants, useControllableState } from './lib/utils';
|
|
3
3
|
export { useTheme, useStyleSheet } from './styles';
|
|
4
4
|
export * from './lib/Components';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useDisabledContext } from '@ledgerhq/lumen-utils-shared';
|
|
2
2
|
import { StyleSheet, Text } from 'react-native';
|
|
3
|
-
import { useCommonTranslation } from '../../../../i18n';
|
|
4
3
|
import { useStyleSheet } from '../../../../styles';
|
|
4
|
+
import { useCommonTranslation } from '../../../../translations';
|
|
5
5
|
import { RuntimeConstants } from '../../../utils';
|
|
6
6
|
import { BaseInput } from '../../internal/BaseInput';
|
|
7
7
|
import { QrCode } from '../../symbols';
|
|
@@ -7,9 +7,9 @@ import Animated, {
|
|
|
7
7
|
useSharedValue,
|
|
8
8
|
withTiming,
|
|
9
9
|
} from 'react-native-reanimated';
|
|
10
|
-
import { useCommonTranslation } from '../../../../i18n';
|
|
11
10
|
import type { LumenTypographyTokenName } from '../../../../styles';
|
|
12
11
|
import { useStyleSheet } from '../../../../styles';
|
|
12
|
+
import { useCommonTranslation } from '../../../../translations';
|
|
13
13
|
import { RuntimeConstants, useGet } from '../../../utils';
|
|
14
14
|
import { Pulse } from '../../animations/Pulse';
|
|
15
15
|
import { useTimingConfig } from '../../animations/useTimingConfig';
|
|
@@ -117,7 +117,7 @@ export const AmountInput = ({
|
|
|
117
117
|
<Pressable
|
|
118
118
|
onPress={handlePress}
|
|
119
119
|
style={styles.pressable}
|
|
120
|
-
accessibilityLabel={props.accessibilityLabel
|
|
120
|
+
accessibilityLabel={props.accessibilityLabel}
|
|
121
121
|
>
|
|
122
122
|
{currencyText && currencyPosition === 'left' && (
|
|
123
123
|
<Currency style={[styles.currency, animatedCurrencyStyle]}>
|
|
@@ -2,12 +2,12 @@ import type { TypographyDefinition } from '@ledgerhq/lumen-design-core';
|
|
|
2
2
|
import { AVATAR_COLOR_KEYS, capitalize } from '@ledgerhq/lumen-utils-shared';
|
|
3
3
|
import { useEffect, useState } from 'react';
|
|
4
4
|
import { Image, StyleSheet, Text, View } from 'react-native';
|
|
5
|
-
import { useCommonTranslation } from '../../../../i18n';
|
|
6
5
|
import {
|
|
7
6
|
useStyleSheet,
|
|
8
7
|
useTheme,
|
|
9
8
|
type LumenStyleSheetTheme,
|
|
10
9
|
} from '../../../../styles';
|
|
10
|
+
import { useCommonTranslation } from '../../../../translations';
|
|
11
11
|
import { Box } from '../../primitives';
|
|
12
12
|
import { User } from '../../symbols';
|
|
13
13
|
import type { IconSize, IconProps } from '../../symbols/Icon';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { isTextChildren } from '@ledgerhq/lumen-utils-shared';
|
|
2
2
|
import type { ComponentType } from 'react';
|
|
3
3
|
import { StyleSheet, Text, View } from 'react-native';
|
|
4
|
-
import { useCommonTranslation } from '../../../../i18n';
|
|
5
4
|
import { useStyleSheet } from '../../../../styles';
|
|
5
|
+
import { useCommonTranslation } from '../../../../translations';
|
|
6
6
|
import { Box } from '../../primitives';
|
|
7
7
|
import {
|
|
8
8
|
InformationFill,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { useBottomSheet } from '@gorhom/bottom-sheet';
|
|
2
2
|
import { useCallback } from 'react';
|
|
3
3
|
import { StyleSheet } from 'react-native';
|
|
4
|
-
import { useCommonTranslation } from '../../../../i18n';
|
|
5
4
|
import { useStyleSheet } from '../../../../styles';
|
|
5
|
+
import { useCommonTranslation } from '../../../../translations';
|
|
6
6
|
import { Box, Text } from '../../primitives';
|
|
7
7
|
import { ArrowLeft, Close } from '../../symbols';
|
|
8
8
|
import { IconButton } from '../IconButton';
|
|
@@ -97,6 +97,8 @@ const useStyles = ({
|
|
|
97
97
|
*
|
|
98
98
|
* It supports different appearances. Takes only the necessary width based on content. The chevron can be hidden if needed.
|
|
99
99
|
*
|
|
100
|
+
* @deprecated Use Card instead.
|
|
101
|
+
*
|
|
100
102
|
* @see {@link https://ldls-react-native.vercel.app/?path=/docs/rnative-cardbutton--docs Guidelines}
|
|
101
103
|
*
|
|
102
104
|
* @warning The `lx` prop should only be used for layout adjustments like margins or positioning.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { isTextChildren } from '@ledgerhq/lumen-utils-shared';
|
|
2
2
|
import { StyleSheet, View } from 'react-native';
|
|
3
|
-
import { useCommonTranslation } from '../../../../i18n';
|
|
4
3
|
import { useStyleSheet } from '../../../../styles';
|
|
4
|
+
import { useCommonTranslation } from '../../../../translations';
|
|
5
5
|
import { Box, Text } from '../../primitives';
|
|
6
6
|
import { Close } from '../../symbols';
|
|
7
7
|
import { InteractiveIcon } from '../InteractiveIcon';
|
|
@@ -13,7 +13,7 @@ import { CustomTabs, Tab } from '../../../../../.storybook/components';
|
|
|
13
13
|
|
|
14
14
|
## Introduction
|
|
15
15
|
|
|
16
|
-
Links are essential navigation elements that direct users to internal screens or external resources. This React Native implementation provides
|
|
16
|
+
Links are essential navigation elements that direct users to internal screens or external resources. This React Native implementation provides appearances, optional underline decoration, and predefined sizing options. Links use React Native's Linking API to open URLs across mobile platforms.
|
|
17
17
|
|
|
18
18
|
> View in [Figma](https://www.figma.com/design/JxaLVMTWirCpU0rsbZ30k7/2.-Components-Library?node-id=770-11743&p=f).
|
|
19
19
|
|
|
@@ -34,10 +34,11 @@ Links are essential navigation elements that direct users to internal screens or
|
|
|
34
34
|
|
|
35
35
|
### Appearance
|
|
36
36
|
|
|
37
|
-
There are
|
|
37
|
+
There are three link appearance variants:
|
|
38
38
|
|
|
39
39
|
- **base** (default): Standard link with base text color and pressed states
|
|
40
40
|
- **accent**: Interactive accent color for emphasis
|
|
41
|
+
- **gray**: Muted color for less important actions
|
|
41
42
|
|
|
42
43
|
<Canvas of={LinkStories.AppearanceShowcase} />
|
|
43
44
|
|
|
@@ -19,7 +19,7 @@ const meta = {
|
|
|
19
19
|
argTypes: {
|
|
20
20
|
appearance: {
|
|
21
21
|
control: 'select',
|
|
22
|
-
options: ['base', 'accent'],
|
|
22
|
+
options: ['base', 'accent', 'gray'],
|
|
23
23
|
description: 'The visual style appearance of the link',
|
|
24
24
|
},
|
|
25
25
|
size: {
|
|
@@ -55,7 +55,7 @@ const meta = {
|
|
|
55
55
|
|
|
56
56
|
export default meta;
|
|
57
57
|
type Story = StoryObj<typeof Link>;
|
|
58
|
-
type LinkAppearance = 'base' | 'accent';
|
|
58
|
+
type LinkAppearance = 'base' | 'accent' | 'gray';
|
|
59
59
|
|
|
60
60
|
export const Base: Story = {
|
|
61
61
|
args: {
|
|
@@ -158,6 +158,7 @@ export const AppearanceShowcase: Story = {
|
|
|
158
158
|
const appearances: { name: string; appearance: LinkAppearance }[] = [
|
|
159
159
|
{ name: 'Base', appearance: 'base' },
|
|
160
160
|
{ name: 'Accent', appearance: 'accent' },
|
|
161
|
+
{ name: 'Gray', appearance: 'gray' },
|
|
161
162
|
];
|
|
162
163
|
|
|
163
164
|
return (
|
|
@@ -74,6 +74,7 @@ describe('Link Component', () => {
|
|
|
74
74
|
it.each([
|
|
75
75
|
['base', colors.text.base],
|
|
76
76
|
['accent', colors.text.interactive],
|
|
77
|
+
['gray', colors.text.muted],
|
|
77
78
|
])(
|
|
78
79
|
'should apply %s appearance with correct text color',
|
|
79
80
|
(appearance, expectedColor) => {
|
|
@@ -142,6 +143,7 @@ describe('Link Component', () => {
|
|
|
142
143
|
it.each([
|
|
143
144
|
['base', colors.text.base, colors.text.basePressed],
|
|
144
145
|
['accent', colors.text.interactive, colors.text.interactivePressed],
|
|
146
|
+
['gray', colors.text.muted, colors.text.mutedPressed],
|
|
145
147
|
])(
|
|
146
148
|
'should apply the %s pressed color while pressed',
|
|
147
149
|
(appearance, restingColor, pressedColor) => {
|
|
@@ -46,11 +46,13 @@ const useStyles = ({ appearance, size, underline, pressed }: StyleParams) => {
|
|
|
46
46
|
const textColors: Record<Appearance, string> = {
|
|
47
47
|
base: t.colors.text.base,
|
|
48
48
|
accent: t.colors.text.interactive,
|
|
49
|
+
gray: t.colors.text.muted,
|
|
49
50
|
};
|
|
50
51
|
|
|
51
52
|
const pressedTextColors: Record<Appearance, string> = {
|
|
52
53
|
base: t.colors.text.basePressed,
|
|
53
54
|
accent: t.colors.text.interactivePressed,
|
|
55
|
+
gray: t.colors.text.mutedPressed,
|
|
54
56
|
};
|
|
55
57
|
|
|
56
58
|
const color = pressed
|
|
@@ -87,7 +89,7 @@ const useStyles = ({ appearance, size, underline, pressed }: StyleParams) => {
|
|
|
87
89
|
};
|
|
88
90
|
|
|
89
91
|
/**
|
|
90
|
-
* A customizable link component that supports
|
|
92
|
+
* A customizable link component that supports multiple color appearances, optional underline, sizes, icons, and external link handling.
|
|
91
93
|
* Opens URLs using React Native's Linking API.
|
|
92
94
|
*
|
|
93
95
|
* Rendered as a `Text`, so it can be nested inside a paragraph of text and flows
|