@ledgerhq/lumen-ui-rnative 0.1.65 → 0.1.67
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/BottomSheet.stories.js +6 -3
- package/dist/module/lib/Components/core/BottomSheet/BottomSheet.stories.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/Card/Card.figma.js +0 -1
- package/dist/module/lib/Components/core/Card/Card.figma.js.map +1 -1
- package/dist/module/lib/Components/core/Card/Card.stories.js +0 -2
- package/dist/module/lib/Components/core/Card/Card.stories.js.map +1 -1
- package/dist/module/lib/Components/core/ContentBanner/ContentBanner.figma.js +0 -1
- package/dist/module/lib/Components/core/ContentBanner/ContentBanner.figma.js.map +1 -1
- package/dist/module/lib/Components/core/ContentBanner/ContentBanner.js +2 -2
- package/dist/module/lib/Components/core/ContentBanner/ContentBanner.js.map +1 -1
- package/dist/module/lib/Components/core/ContentBanner/ContentBanner.mdx +4 -4
- package/dist/module/lib/Components/core/ContentBanner/ContentBanner.stories.js +1 -9
- package/dist/module/lib/Components/core/ContentBanner/ContentBanner.stories.js.map +1 -1
- package/dist/module/lib/Components/core/ContentBanner/ContentBanner.test.js +0 -1
- package/dist/module/lib/Components/core/ContentBanner/ContentBanner.test.js.map +1 -1
- package/dist/module/lib/Components/core/DotSymbol/DotSymbol.stories.js +0 -5
- package/dist/module/lib/Components/core/DotSymbol/DotSymbol.stories.js.map +1 -1
- package/dist/module/lib/Components/core/ListItem/ListItem.figma.js +0 -1
- package/dist/module/lib/Components/core/ListItem/ListItem.figma.js.map +1 -1
- package/dist/module/lib/Components/core/ListItem/ListItem.js +1 -1
- package/dist/module/lib/Components/core/ListItem/ListItem.mdx +10 -10
- package/dist/module/lib/Components/core/ListItem/ListItem.stories.js +2 -29
- package/dist/module/lib/Components/core/ListItem/ListItem.stories.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/SelectList/SelectList.mdx +1 -1
- package/dist/module/lib/Components/core/SelectList/SelectList.stories.js +0 -1
- package/dist/module/lib/Components/core/SelectList/SelectList.stories.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/Spot/Spot.figma.js +31 -16
- package/dist/module/lib/Components/core/Spot/Spot.figma.js.map +1 -1
- package/dist/module/lib/Components/core/Spot/Spot.js +24 -146
- package/dist/module/lib/Components/core/Spot/Spot.js.map +1 -1
- package/dist/module/lib/Components/core/Spot/Spot.mdx +47 -108
- package/dist/module/lib/Components/core/Spot/Spot.stories.js +108 -215
- package/dist/module/lib/Components/core/Spot/Spot.stories.js.map +1 -1
- package/dist/module/lib/Components/core/Spot/Spot.test.js +61 -0
- package/dist/module/lib/Components/core/Spot/Spot.test.js.map +1 -0
- package/dist/module/lib/Components/core/Spot/SpotNumber.js +56 -0
- package/dist/module/lib/Components/core/Spot/SpotNumber.js.map +1 -0
- package/dist/module/lib/Components/core/Spot/SpotNumber.test.js +72 -0
- package/dist/module/lib/Components/core/Spot/SpotNumber.test.js.map +1 -0
- package/dist/module/lib/Components/core/Spot/index.js +1 -0
- package/dist/module/lib/Components/core/Spot/index.js.map +1 -1
- package/dist/module/lib/Components/core/Spot/useSpotStyles.js +93 -0
- package/dist/module/lib/Components/core/Spot/useSpotStyles.js.map +1 -0
- package/dist/module/lib/Components/core/Stepper/Stepper.js +1 -1
- package/dist/module/lib/Components/core/Stepper/Stepper.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 -1
- package/dist/module/lib/Components/core/ThemeProvider/ThemeProvider.test.js.map +1 -1
- package/dist/module/lib/Components/core/Tile/Tile.figma.js +0 -1
- package/dist/module/lib/Components/core/Tile/Tile.figma.js.map +1 -1
- package/dist/module/lib/Components/core/Tile/Tile.js +3 -3
- package/dist/module/lib/Components/core/Tile/Tile.mdx +8 -8
- package/dist/module/lib/Components/core/Tile/Tile.stories.js +7 -25
- package/dist/module/lib/Components/core/Tile/Tile.stories.js.map +1 -1
- package/dist/module/lib/Components/core/Toast/hooks/useToastAccessibility.js +1 -1
- package/dist/module/lib/Components/core/Toast/hooks/useToastAccessibility.js.map +1 -1
- 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/internal/BaseInput/BaseInput.js +1 -1
- package/dist/module/lib/Components/internal/BaseInput/BaseInput.js.map +1 -1
- package/dist/module/lib/Components/symbols/icons/AiBubble.js +60 -0
- package/dist/module/lib/Components/symbols/icons/AiBubble.js.map +1 -0
- package/dist/module/lib/Components/symbols/icons/ArrowBottomLeft.js +49 -0
- package/dist/module/lib/Components/symbols/icons/ArrowBottomLeft.js.map +1 -0
- package/dist/module/lib/Components/symbols/icons/Bug.js +1 -1
- package/dist/module/lib/Components/symbols/icons/Bug.js.map +1 -1
- package/dist/module/lib/Components/symbols/icons/Hourglass.js +49 -0
- package/dist/module/lib/Components/symbols/icons/Hourglass.js.map +1 -0
- package/dist/module/lib/Components/symbols/icons/Repeat.js +49 -0
- package/dist/module/lib/Components/symbols/icons/Repeat.js.map +1 -0
- package/dist/module/lib/Components/symbols/icons/Robot.js +57 -0
- package/dist/module/lib/Components/symbols/icons/Robot.js.map +1 -0
- package/dist/module/lib/Components/symbols/icons/Switch.js +11 -5
- package/dist/module/lib/Components/symbols/icons/Switch.js.map +1 -1
- package/dist/module/lib/Components/symbols/icons/Wifi.js +52 -0
- package/dist/module/lib/Components/symbols/icons/Wifi.js.map +1 -0
- package/dist/module/lib/Components/symbols/index.js +6 -0
- package/dist/module/lib/Components/symbols/index.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/ContentBanner/ContentBanner.d.ts +1 -1
- package/dist/typescript/src/lib/Components/core/ListItem/ListItem.d.ts +1 -1
- package/dist/typescript/src/lib/Components/core/Spot/Spot.d.ts +7 -25
- package/dist/typescript/src/lib/Components/core/Spot/Spot.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/core/Spot/SpotNumber.d.ts +16 -0
- package/dist/typescript/src/lib/Components/core/Spot/SpotNumber.d.ts.map +1 -0
- package/dist/typescript/src/lib/Components/core/Spot/index.d.ts +1 -0
- package/dist/typescript/src/lib/Components/core/Spot/index.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/core/Spot/types.d.ts +29 -29
- package/dist/typescript/src/lib/Components/core/Spot/types.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/core/Spot/useSpotStyles.d.ts +14 -0
- package/dist/typescript/src/lib/Components/core/Spot/useSpotStyles.d.ts.map +1 -0
- 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/Tile/Tile.d.ts +3 -3
- package/dist/typescript/src/lib/Components/symbols/icons/AiBubble.d.ts +35 -0
- package/dist/typescript/src/lib/Components/symbols/icons/AiBubble.d.ts.map +1 -0
- package/dist/typescript/src/lib/Components/symbols/icons/ArrowBottomLeft.d.ts +35 -0
- package/dist/typescript/src/lib/Components/symbols/icons/ArrowBottomLeft.d.ts.map +1 -0
- package/dist/typescript/src/lib/Components/symbols/icons/Hourglass.d.ts +35 -0
- package/dist/typescript/src/lib/Components/symbols/icons/Hourglass.d.ts.map +1 -0
- package/dist/typescript/src/lib/Components/symbols/icons/Repeat.d.ts +35 -0
- package/dist/typescript/src/lib/Components/symbols/icons/Repeat.d.ts.map +1 -0
- package/dist/typescript/src/lib/Components/symbols/icons/Robot.d.ts +35 -0
- package/dist/typescript/src/lib/Components/symbols/icons/Robot.d.ts.map +1 -0
- package/dist/typescript/src/lib/Components/symbols/icons/Switch.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/symbols/icons/Wifi.d.ts +35 -0
- package/dist/typescript/src/lib/Components/symbols/icons/Wifi.d.ts.map +1 -0
- package/dist/typescript/src/lib/Components/symbols/index.d.ts +6 -0
- package/dist/typescript/src/lib/Components/symbols/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/BottomSheet.stories.tsx +12 -4
- package/src/lib/Components/core/BottomSheet/BottomSheetHeader.tsx +1 -1
- package/src/lib/Components/core/Card/Card.figma.tsx +1 -1
- package/src/lib/Components/core/Card/Card.stories.tsx +2 -2
- package/src/lib/Components/core/ContentBanner/ContentBanner.figma.tsx +1 -1
- package/src/lib/Components/core/ContentBanner/ContentBanner.mdx +4 -4
- package/src/lib/Components/core/ContentBanner/ContentBanner.stories.tsx +9 -9
- package/src/lib/Components/core/ContentBanner/ContentBanner.test.tsx +1 -1
- package/src/lib/Components/core/ContentBanner/ContentBanner.tsx +2 -2
- package/src/lib/Components/core/DotSymbol/DotSymbol.stories.tsx +5 -5
- package/src/lib/Components/core/ListItem/ListItem.figma.tsx +1 -1
- package/src/lib/Components/core/ListItem/ListItem.mdx +10 -10
- package/src/lib/Components/core/ListItem/ListItem.stories.tsx +29 -33
- package/src/lib/Components/core/ListItem/ListItem.tsx +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/SelectList/SelectList.mdx +1 -1
- package/src/lib/Components/core/SelectList/SelectList.stories.tsx +1 -1
- package/src/lib/Components/core/Spinner/Spinner.tsx +1 -1
- package/src/lib/Components/core/Spot/Spot.figma.tsx +42 -21
- package/src/lib/Components/core/Spot/Spot.mdx +47 -108
- package/src/lib/Components/core/Spot/Spot.stories.tsx +114 -175
- package/src/lib/Components/core/Spot/Spot.test.tsx +71 -0
- package/src/lib/Components/core/Spot/Spot.tsx +21 -163
- package/src/lib/Components/core/Spot/SpotNumber.test.tsx +93 -0
- package/src/lib/Components/core/Spot/SpotNumber.tsx +48 -0
- package/src/lib/Components/core/Spot/index.ts +1 -0
- package/src/lib/Components/core/Spot/types.ts +39 -41
- package/src/lib/Components/core/Spot/useSpotStyles.ts +119 -0
- package/src/lib/Components/core/Stepper/Stepper.tsx +1 -1
- package/src/lib/Components/core/Subheader/Subheader.tsx +3 -1
- package/src/lib/Components/core/ThemeProvider/ThemeProvider.test.tsx +12 -1
- 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/Tile/Tile.figma.tsx +1 -1
- package/src/lib/Components/core/Tile/Tile.mdx +8 -8
- package/src/lib/Components/core/Tile/Tile.stories.tsx +32 -25
- package/src/lib/Components/core/Tile/Tile.tsx +3 -3
- package/src/lib/Components/core/Toast/hooks/useToastAccessibility.ts +1 -1
- package/src/lib/Components/core/Trend/Trend.tsx +1 -1
- package/src/lib/Components/internal/BaseInput/BaseInput.tsx +1 -1
- package/src/lib/Components/symbols/icons/AiBubble.tsx +51 -0
- package/src/lib/Components/symbols/icons/ArrowBottomLeft.tsx +44 -0
- package/src/lib/Components/symbols/icons/Bug.tsx +1 -1
- package/src/lib/Components/symbols/icons/Hourglass.tsx +44 -0
- package/src/lib/Components/symbols/icons/Repeat.tsx +44 -0
- package/src/lib/Components/symbols/icons/Robot.tsx +44 -0
- package/src/lib/Components/symbols/icons/Switch.tsx +8 -1
- package/src/lib/Components/symbols/icons/Wifi.tsx +48 -0
- package/src/lib/Components/symbols/index.ts +6 -0
- 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
|
@@ -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.67",
|
|
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.32",
|
|
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,
|
|
@@ -2,7 +2,15 @@ import type { Meta, StoryObj } from '@storybook/react-vite';
|
|
|
2
2
|
import type { FC } from 'react';
|
|
3
3
|
import { useEffect, useState } from 'react';
|
|
4
4
|
import { Box, RadialGradient, Text } from '../../primitives';
|
|
5
|
-
import {
|
|
5
|
+
import {
|
|
6
|
+
Bell,
|
|
7
|
+
CheckmarkCircleFill,
|
|
8
|
+
DeleteCircleFill,
|
|
9
|
+
InformationFill,
|
|
10
|
+
Settings,
|
|
11
|
+
Trash,
|
|
12
|
+
Unlink,
|
|
13
|
+
} from '../../symbols';
|
|
6
14
|
import { Button } from '../Button';
|
|
7
15
|
import { MenuList, MenuListItem, MenuListSwitchItem } from '../MenuList';
|
|
8
16
|
import { SearchInput } from '../SearchInput';
|
|
@@ -796,7 +804,7 @@ export const InfoStateVariants: Story = {
|
|
|
796
804
|
<BottomSheetView>
|
|
797
805
|
<BottomSheetHeader density='compact' />
|
|
798
806
|
<Box lx={{ alignItems: 'center', gap: 's24' }}>
|
|
799
|
-
<Spot appearance='error' size={72} />
|
|
807
|
+
<Spot appearance='error' icon={DeleteCircleFill} size={72} />
|
|
800
808
|
<Box lx={{ alignItems: 'center', gap: 's12' }}>
|
|
801
809
|
<Text typography='heading4SemiBold' lx={{ color: 'base' }}>
|
|
802
810
|
Title
|
|
@@ -825,7 +833,7 @@ export const InfoStateVariants: Story = {
|
|
|
825
833
|
<BottomSheetView>
|
|
826
834
|
<BottomSheetHeader density='compact' />
|
|
827
835
|
<Box lx={{ alignItems: 'center', gap: 's24' }}>
|
|
828
|
-
<Spot appearance='
|
|
836
|
+
<Spot appearance='success' icon={CheckmarkCircleFill} size={72} />
|
|
829
837
|
<Box lx={{ alignItems: 'center', gap: 's12' }}>
|
|
830
838
|
<Text typography='heading4SemiBold' lx={{ color: 'base' }}>
|
|
831
839
|
Title
|
|
@@ -854,7 +862,7 @@ export const InfoStateVariants: Story = {
|
|
|
854
862
|
<BottomSheetView>
|
|
855
863
|
<BottomSheetHeader density='compact' />
|
|
856
864
|
<Box lx={{ alignItems: 'center', gap: 's24' }}>
|
|
857
|
-
<Spot appearance='
|
|
865
|
+
<Spot appearance='muted' icon={InformationFill} size={72} />
|
|
858
866
|
<Box lx={{ alignItems: 'center', gap: 's12' }}>
|
|
859
867
|
<Text typography='heading4SemiBold' lx={{ color: 'base' }}>
|
|
860
868
|
Title
|
|
@@ -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';
|
|
@@ -58,7 +58,7 @@ figma.connect(
|
|
|
58
58
|
title: figma.string('title'),
|
|
59
59
|
description: figma.string('description'),
|
|
60
60
|
leading: figma.enum('leading', {
|
|
61
|
-
spot: <Spot
|
|
61
|
+
spot: <Spot icon={Wallet} />,
|
|
62
62
|
coin: <CryptoIcon ledgerId='bitcoin' ticker='BTC' size={48} />,
|
|
63
63
|
provider: (
|
|
64
64
|
<CryptoIcon
|
|
@@ -304,7 +304,7 @@ export const DisabledWithSpot: Story = {
|
|
|
304
304
|
<Card {...args}>
|
|
305
305
|
<CardHeader>
|
|
306
306
|
<CardLeading>
|
|
307
|
-
<Spot
|
|
307
|
+
<Spot icon={Wallet} disabled />
|
|
308
308
|
<CardContent>
|
|
309
309
|
<CardContentTitle>My Wallet</CardContentTitle>
|
|
310
310
|
<CardContentDescription>Ethereum</CardContentDescription>
|
|
@@ -540,7 +540,7 @@ export const CompositionsShowcase: Story = {
|
|
|
540
540
|
<Card>
|
|
541
541
|
<CardHeader>
|
|
542
542
|
<CardLeading>
|
|
543
|
-
<Spot
|
|
543
|
+
<Spot icon={Wallet} />
|
|
544
544
|
<CardContent>
|
|
545
545
|
<CardContentTitle>Bitcoin</CardContentTitle>
|
|
546
546
|
<CardContentDescription>BTC</CardContentDescription>
|
|
@@ -30,7 +30,7 @@ figma.connect(
|
|
|
30
30
|
onClose={props.onClose}
|
|
31
31
|
closeAccessibilityLabel='Close content banner'
|
|
32
32
|
>
|
|
33
|
-
<Spot
|
|
33
|
+
<Spot icon={Settings} size={48} />
|
|
34
34
|
<ContentBannerContent>
|
|
35
35
|
<ContentBannerTitle>{props.title}</ContentBannerTitle>
|
|
36
36
|
<ContentBannerDescription>
|
|
@@ -101,7 +101,7 @@ import { Settings } from '@ledgerhq/lumen-ui-rnative/symbols';
|
|
|
101
101
|
function MyComponent() {
|
|
102
102
|
return (
|
|
103
103
|
<ContentBanner>
|
|
104
|
-
<Spot
|
|
104
|
+
<Spot icon={Settings} size={48} />
|
|
105
105
|
<ContentBannerContent>
|
|
106
106
|
<ContentBannerTitle>Title</ContentBannerTitle>
|
|
107
107
|
<ContentBannerDescription>
|
|
@@ -133,7 +133,7 @@ function MyComponent() {
|
|
|
133
133
|
onClose={() => console.log('Closed')}
|
|
134
134
|
closeAccessibilityLabel='Close banner'
|
|
135
135
|
>
|
|
136
|
-
<Spot
|
|
136
|
+
<Spot icon={Wallet} size={48} />
|
|
137
137
|
<ContentBannerContent>
|
|
138
138
|
<ContentBannerTitle>Dismissible Banner</ContentBannerTitle>
|
|
139
139
|
<ContentBannerDescription>
|
|
@@ -215,7 +215,7 @@ import { Settings } from '@ledgerhq/lumen-ui-rnative/symbols';
|
|
|
215
215
|
function MyComponent() {
|
|
216
216
|
return (
|
|
217
217
|
<ContentBanner>
|
|
218
|
-
<Spot
|
|
218
|
+
<Spot icon={Settings} size={48} />
|
|
219
219
|
<ContentBannerContent>
|
|
220
220
|
<ContentBannerTitle>Title Only</ContentBannerTitle>
|
|
221
221
|
</ContentBannerContent>
|
|
@@ -230,7 +230,7 @@ Use the `lx` prop for layout adjustments like margins or positioning:
|
|
|
230
230
|
|
|
231
231
|
```tsx
|
|
232
232
|
<ContentBanner lx={{ marginTop: 's16', marginBottom: 's8' }}>
|
|
233
|
-
<Spot
|
|
233
|
+
<Spot icon={Settings} size={48} />
|
|
234
234
|
<ContentBannerContent>
|
|
235
235
|
<ContentBannerTitle>With Margin</ContentBannerTitle>
|
|
236
236
|
<ContentBannerDescription>
|