@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
|
@@ -25,9 +25,6 @@
|
|
|
25
25
|
"banner": {
|
|
26
26
|
"closeAriaLabel": "Close"
|
|
27
27
|
},
|
|
28
|
-
"link": {
|
|
29
|
-
"opensInNewTabAriaLabel": "(opens in a new tab)"
|
|
30
|
-
},
|
|
31
28
|
"stepper": {
|
|
32
29
|
"progressAriaLabel": "Step {{currentStep}} of {{totalSteps}}"
|
|
33
30
|
},
|
|
@@ -35,6 +32,15 @@
|
|
|
35
32
|
"positiveAriaLabel": "Trending up by {{value}}",
|
|
36
33
|
"negativeAriaLabel": "Trending down by {{value}}",
|
|
37
34
|
"neutralAriaLabel": "No change, {{value}}"
|
|
35
|
+
},
|
|
36
|
+
"chart": {
|
|
37
|
+
"emptyLabel": "No data",
|
|
38
|
+
"loadingAriaLabel": "Loading chart",
|
|
39
|
+
"defaultAriaLabel": "Chart",
|
|
40
|
+
"selectedSegmentAriaLabel": "{{label}}, selected"
|
|
41
|
+
},
|
|
42
|
+
"subheader": {
|
|
43
|
+
"moreInfoAriaLabel": "More information"
|
|
38
44
|
}
|
|
39
45
|
}
|
|
40
46
|
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { createTranslations } from '@ledgerhq/lumen-utils-shared';
|
|
4
|
+
import { DEFAULT_LANGUAGE } from "./languages.js";
|
|
5
|
+
import de from './locales/de.json';
|
|
6
|
+
import en from './locales/en.json';
|
|
7
|
+
import es from './locales/es.json';
|
|
8
|
+
import fr from './locales/fr.json';
|
|
9
|
+
import ja from './locales/ja.json';
|
|
10
|
+
import ko from './locales/ko.json';
|
|
11
|
+
import pt from './locales/pt.json';
|
|
12
|
+
import ru from './locales/ru.json';
|
|
13
|
+
import th from './locales/th.json';
|
|
14
|
+
import tr from './locales/tr.json';
|
|
15
|
+
import zh from './locales/zh.json';
|
|
16
|
+
export const dictionaries = {
|
|
17
|
+
de,
|
|
18
|
+
en,
|
|
19
|
+
es,
|
|
20
|
+
fr,
|
|
21
|
+
ja,
|
|
22
|
+
ko,
|
|
23
|
+
pt,
|
|
24
|
+
ru,
|
|
25
|
+
th,
|
|
26
|
+
tr,
|
|
27
|
+
zh
|
|
28
|
+
};
|
|
29
|
+
export const {
|
|
30
|
+
TranslationsProvider,
|
|
31
|
+
useTranslations: useCommonTranslation
|
|
32
|
+
} = createTranslations({
|
|
33
|
+
dictionaries,
|
|
34
|
+
defaultLocale: DEFAULT_LANGUAGE
|
|
35
|
+
});
|
|
36
|
+
//# sourceMappingURL=translations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["createTranslations","DEFAULT_LANGUAGE","de","en","es","fr","ja","ko","pt","ru","th","tr","zh","dictionaries","TranslationsProvider","useTranslations","useCommonTranslation","defaultLocale"],"sourceRoot":"../../../src","sources":["translations/translations.ts"],"mappings":";;AAAA,SAASA,kBAAkB,QAAQ,8BAA8B;AACjE,SAASC,gBAAgB,QAA8B,gBAAa;AACpE,OAAOC,EAAE,MAAM,mBAAmB;AAClC,OAAOC,EAAE,MAAM,mBAAmB;AAClC,OAAOC,EAAE,MAAM,mBAAmB;AAClC,OAAOC,EAAE,MAAM,mBAAmB;AAClC,OAAOC,EAAE,MAAM,mBAAmB;AAClC,OAAOC,EAAE,MAAM,mBAAmB;AAClC,OAAOC,EAAE,MAAM,mBAAmB;AAClC,OAAOC,EAAE,MAAM,mBAAmB;AAClC,OAAOC,EAAE,MAAM,mBAAmB;AAClC,OAAOC,EAAE,MAAM,mBAAmB;AAClC,OAAOC,EAAE,MAAM,mBAAmB;AAElC,OAAO,MAAMC,YAAY,GAAG;EAAEX,EAAE;EAAEC,EAAE;EAAEC,EAAE;EAAEC,EAAE;EAAEC,EAAE;EAAEC,EAAE;EAAEC,EAAE;EAAEC,EAAE;EAAEC,EAAE;EAAEC,EAAE;EAAEC;AAAG,CAAC;AAE1E,OAAO,MAAM;EAAEE,oBAAoB;EAAEC,eAAe,EAAEC;AAAqB,CAAC,GAC1EhB,kBAAkB,CAA6B;EAC7Ca,YAAY;EACZI,aAAa,EAAEhB;AACjB,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { describe, expect, it } from '@jest/globals';
|
|
4
|
+
import { dictionaries } from "./translations.js";
|
|
5
|
+
const flatten = (dictionary, prefix = '') => Object.entries(dictionary).reduce((entries, [key, value]) => {
|
|
6
|
+
const path = prefix ? `${prefix}.${key}` : key;
|
|
7
|
+
return typeof value === 'string' ? {
|
|
8
|
+
...entries,
|
|
9
|
+
[path]: value
|
|
10
|
+
} : {
|
|
11
|
+
...entries,
|
|
12
|
+
...flatten(value, path)
|
|
13
|
+
};
|
|
14
|
+
}, {});
|
|
15
|
+
const placeholdersOf = value => [...value.matchAll(/\{\{\s*(\w+)\s*\}\}/g)].map(([, name]) => name).sort();
|
|
16
|
+
|
|
17
|
+
// Keys that are allowed to fall back to en until they are translated.
|
|
18
|
+
const UNTRANSLATED_KEYS = ['components.trend.positiveAriaLabel', 'components.trend.negativeAriaLabel', 'components.trend.neutralAriaLabel', 'components.chart.emptyLabel', 'components.chart.loadingAriaLabel', 'components.chart.defaultAriaLabel', 'components.chart.selectedSegmentAriaLabel', 'components.subheader.moreInfoAriaLabel'];
|
|
19
|
+
const source = flatten(dictionaries.en);
|
|
20
|
+
const locales = Object.entries(dictionaries).filter(([locale]) => locale !== 'en').map(([locale, dictionary]) => [locale, flatten(dictionary)]);
|
|
21
|
+
describe('translation dictionaries', () => {
|
|
22
|
+
it.each(locales)('%s has no key that en lacks', (_, entries) => {
|
|
23
|
+
expect(Object.keys(entries).filter(key => !(key in source))).toEqual([]);
|
|
24
|
+
});
|
|
25
|
+
it.each(locales)('%s translates every en key', (_, entries) => {
|
|
26
|
+
const missing = Object.keys(source).filter(key => !(key in entries) && !UNTRANSLATED_KEYS.includes(key));
|
|
27
|
+
expect(missing).toEqual([]);
|
|
28
|
+
});
|
|
29
|
+
it.each(locales)('%s uses the same placeholders as en', (_, entries) => {
|
|
30
|
+
const mismatches = Object.entries(entries).filter(([key, value]) => placeholdersOf(value).join() !== placeholdersOf(source[key] ?? '').join());
|
|
31
|
+
expect(mismatches).toEqual([]);
|
|
32
|
+
});
|
|
33
|
+
});
|
|
34
|
+
//# sourceMappingURL=translations.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["describe","expect","it","dictionaries","flatten","dictionary","prefix","Object","entries","reduce","key","value","path","placeholdersOf","matchAll","map","name","sort","UNTRANSLATED_KEYS","source","en","locales","filter","locale","each","_","keys","toEqual","missing","includes","mismatches","join"],"sourceRoot":"../../../src","sources":["translations/translations.test.ts"],"mappings":"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","ignoreList":[]}
|
|
@@ -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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,eAAe,EAAE,SAAS,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,eAAe,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AACjE,OAAO,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AACrE,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACnD,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC"}
|
|
@@ -25,7 +25,7 @@ export declare const ContentBannerDescription: ({ children, lx, style, ref, ...t
|
|
|
25
25
|
* import { Wallet } from '@ledgerhq/lumen-ui-rnative/symbols';
|
|
26
26
|
*
|
|
27
27
|
* <ContentBanner onClose={() => {}}>
|
|
28
|
-
* <Spot
|
|
28
|
+
* <Spot icon={Wallet} size={48} />
|
|
29
29
|
* <ContentBannerContent>
|
|
30
30
|
* <ContentBannerTitle>Title</ContentBannerTitle>
|
|
31
31
|
* <ContentBannerDescription>Description text</ContentBannerDescription>
|
|
@@ -25,7 +25,7 @@ import type { ListItemContentProps, ListItemContentRowProps, ListItemDescription
|
|
|
25
25
|
*
|
|
26
26
|
* <ListItem onPress={() => console.log('Clicked!')}>
|
|
27
27
|
* <ListItemLeading>
|
|
28
|
-
* <Spot size={48}
|
|
28
|
+
* <Spot size={48} icon={Wallet} />
|
|
29
29
|
* <ListItemContent>
|
|
30
30
|
* <ListItemTitle>Balance</ListItemTitle>
|
|
31
31
|
* <ListItemDescription>Optional description</ListItemDescription>
|
|
@@ -1,37 +1,19 @@
|
|
|
1
1
|
import type { SpotProps } from './types';
|
|
2
2
|
/**
|
|
3
|
-
* A circular
|
|
4
|
-
*
|
|
5
|
-
* Uses a discriminated union type system where the required props depend on the `appearance` value:
|
|
6
|
-
* - `'icon'` appearance requires an `icon` prop
|
|
7
|
-
* - `'number'` appearance requires a `number` prop
|
|
8
|
-
* - All other appearances are self-contained
|
|
3
|
+
* A circular icon container. `appearance` selects the color palette and `fill` selects whether that palette paints only the icon or the circle as well.
|
|
9
4
|
*
|
|
10
5
|
* @see {@link https://ldls-react-native.vercel.app/?path=/docs/rnative-spot--docs Storybook}
|
|
11
6
|
*
|
|
12
7
|
* @warning The `lx` prop should only be used for layout adjustments like margins or positioning.
|
|
13
|
-
* Do not use it to modify the spot's core appearance (colors, size, etc). Use the `appearance`
|
|
8
|
+
* Do not use it to modify the spot's core appearance (colors, size, etc). Use the `appearance` and `fill` props instead.
|
|
14
9
|
*
|
|
15
10
|
* @example
|
|
16
11
|
* import { Spot } from '@ledgerhq/lumen-ui-rnative';
|
|
12
|
+
* import { Settings, CheckmarkCircleFill } from '@ledgerhq/lumen-ui-rnative/symbols';
|
|
17
13
|
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
* <Spot appearance="icon" icon={Settings} />
|
|
22
|
-
*
|
|
23
|
-
* // Number spot
|
|
24
|
-
* <Spot appearance="number" number={5} />
|
|
25
|
-
*
|
|
26
|
-
* // Status indicators (no additional props needed)
|
|
27
|
-
* <Spot appearance="check" />
|
|
28
|
-
* <Spot appearance="error" />
|
|
29
|
-
* <Spot appearance="warning" />
|
|
30
|
-
* <Spot appearance="loader" />
|
|
31
|
-
*
|
|
32
|
-
* // Bluetooth states
|
|
33
|
-
* <Spot appearance="bluetooth" />
|
|
34
|
-
* <Spot appearance="bluetooth" disabled />
|
|
14
|
+
* <Spot icon={Settings} />
|
|
15
|
+
* <Spot appearance="success" icon={CheckmarkCircleFill} />
|
|
16
|
+
* <Spot appearance="success" fill="plain" icon={Settings} />
|
|
35
17
|
*/
|
|
36
|
-
export declare const Spot: (
|
|
18
|
+
export declare const Spot: ({ appearance, fill, icon: Icon, disabled: disabledProp, size, lx, style, ...rest }: SpotProps) => import("react/jsx-runtime").JSX.Element;
|
|
37
19
|
//# sourceMappingURL=Spot.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Spot.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/Components/core/Spot/Spot.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Spot.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/Components/core/Spot/Spot.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,SAAS,EAAY,MAAM,SAAS,CAAC;AAWnD;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,IAAI,GAAI,oFASlB,SAAS,4CAiBX,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { SpotNumberProps } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* A circular digit. Uses the same palette, fill, and size as `Spot`.
|
|
4
|
+
*
|
|
5
|
+
* @see {@link https://ldls-react-native.vercel.app/?path=/docs/rnative-spot--docs Storybook}
|
|
6
|
+
*
|
|
7
|
+
* @warning The `lx` prop should only be used for layout adjustments like margins or positioning.
|
|
8
|
+
* Do not use it to modify the circle's core appearance (colors, size, etc). Use the `appearance` and `fill` props instead.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* import { SpotNumber } from '@ledgerhq/lumen-ui-rnative';
|
|
12
|
+
*
|
|
13
|
+
* <SpotNumber value={9} />
|
|
14
|
+
*/
|
|
15
|
+
export declare const SpotNumber: ({ appearance, fill, value, disabled: disabledProp, size, lx, style, ...rest }: SpotNumberProps) => import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
//# sourceMappingURL=SpotNumber.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SpotNumber.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/Components/core/Spot/SpotNumber.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAG/C;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,UAAU,GAAI,+EASxB,eAAe,4CAmBjB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/Components/core/Spot/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/Components/core/Spot/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC"}
|
|
@@ -1,36 +1,22 @@
|
|
|
1
1
|
import type { ComponentType } from 'react';
|
|
2
|
+
import type { StyleProp, TextStyle } from 'react-native';
|
|
2
3
|
import type { StyledViewProps } from '../../../../styles';
|
|
3
|
-
import type {
|
|
4
|
-
export type SpotAppearance = '
|
|
5
|
-
type
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
appearance: 'icon';
|
|
10
|
-
/**
|
|
11
|
-
* A React component to be rendered as the icon. Required when appearance is 'icon'.
|
|
12
|
-
*/
|
|
13
|
-
icon: ComponentType<IconProps>;
|
|
14
|
-
};
|
|
15
|
-
type NumberSpotProps = {
|
|
16
|
-
/**
|
|
17
|
-
* Displays a single digit (0-9) with number styling.
|
|
18
|
-
*/
|
|
19
|
-
appearance: 'number';
|
|
4
|
+
import type { IconSize } from '../../symbols/Icon';
|
|
5
|
+
export type SpotAppearance = 'base' | 'success' | 'error' | 'warning' | 'muted' | 'decorative-blue' | 'decorative-pink' | 'decorative-purple' | 'decorative-green' | 'decorative-turquoise' | 'decorative-yellow' | 'decorative-orange' | 'decorative-red';
|
|
6
|
+
export type SpotFill = 'transparent' | 'plain';
|
|
7
|
+
export type SpotSize = 32 | 40 | 48 | 56 | 72;
|
|
8
|
+
export type SpotDigit = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9;
|
|
9
|
+
export type SpotProps = {
|
|
20
10
|
/**
|
|
21
|
-
*
|
|
11
|
+
* Color palette for the icon, and for the circle when `fill` is plain.
|
|
12
|
+
* @default 'base'
|
|
22
13
|
*/
|
|
23
|
-
|
|
24
|
-
};
|
|
25
|
-
type StatusSpotProps = {
|
|
14
|
+
appearance?: SpotAppearance;
|
|
26
15
|
/**
|
|
27
|
-
*
|
|
16
|
+
* Circle treatment. Transparent keeps a muted transparent fill. Plain uses the palette's solid background and paired text color.
|
|
17
|
+
* @default 'transparent'
|
|
28
18
|
*/
|
|
29
|
-
|
|
30
|
-
};
|
|
31
|
-
export type DiscriminatedSpotProps = IconSpotProps | NumberSpotProps | StatusSpotProps;
|
|
32
|
-
export type SpotSize = 32 | 40 | 48 | 56 | 72;
|
|
33
|
-
export type SpotProps = {
|
|
19
|
+
fill?: SpotFill;
|
|
34
20
|
/**
|
|
35
21
|
* Whether the spot is disabled.
|
|
36
22
|
* @default false
|
|
@@ -41,6 +27,20 @@ export type SpotProps = {
|
|
|
41
27
|
* @default 48
|
|
42
28
|
*/
|
|
43
29
|
size?: SpotSize;
|
|
44
|
-
|
|
45
|
-
|
|
30
|
+
/**
|
|
31
|
+
* Icon rendered inside the circle.
|
|
32
|
+
* @required
|
|
33
|
+
*/
|
|
34
|
+
icon: ComponentType<{
|
|
35
|
+
size?: IconSize;
|
|
36
|
+
style?: StyleProp<TextStyle>;
|
|
37
|
+
}>;
|
|
38
|
+
} & Omit<StyledViewProps, 'children'>;
|
|
39
|
+
export type SpotNumberProps = {
|
|
40
|
+
/**
|
|
41
|
+
* Digit rendered inside the circle.
|
|
42
|
+
* @required
|
|
43
|
+
*/
|
|
44
|
+
value: SpotDigit;
|
|
45
|
+
} & Omit<SpotProps, 'icon'>;
|
|
46
46
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/Components/core/Spot/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAC1D,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/Components/core/Spot/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAC1D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAEnD,MAAM,MAAM,cAAc,GACtB,MAAM,GACN,SAAS,GACT,OAAO,GACP,SAAS,GACT,OAAO,GACP,iBAAiB,GACjB,iBAAiB,GACjB,mBAAmB,GACnB,kBAAkB,GAClB,sBAAsB,GACtB,mBAAmB,GACnB,mBAAmB,GACnB,gBAAgB,CAAC;AAErB,MAAM,MAAM,QAAQ,GAAG,aAAa,GAAG,OAAO,CAAC;AAE/C,MAAM,MAAM,QAAQ,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC;AAE9C,MAAM,MAAM,SAAS,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;AAE9D,MAAM,MAAM,SAAS,GAAG;IACtB;;;OAGG;IACH,UAAU,CAAC,EAAE,cAAc,CAAC;IAC5B;;;OAGG;IACH,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;OAGG;IACH,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB;;;OAGG;IACH,IAAI,EAAE,aAAa,CAAC;QAAE,IAAI,CAAC,EAAE,QAAQ,CAAC;QAAC,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAA;KAAE,CAAC,CAAC;CACxE,GAAG,IAAI,CAAC,eAAe,EAAE,UAAU,CAAC,CAAC;AAEtC,MAAM,MAAM,eAAe,GAAG;IAC5B;;;OAGG;IACH,KAAK,EAAE,SAAS,CAAC;CAClB,GAAG,IAAI,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { TextStyle, ViewStyle } from 'react-native';
|
|
2
|
+
import type { SpotAppearance, SpotFill, SpotSize } from './types';
|
|
3
|
+
export type SpotStyles = {
|
|
4
|
+
root: ViewStyle;
|
|
5
|
+
icon: TextStyle;
|
|
6
|
+
numberText: TextStyle;
|
|
7
|
+
};
|
|
8
|
+
export declare const useSpotStyles: ({ size, appearance, fill, disabled, }: {
|
|
9
|
+
size: SpotSize;
|
|
10
|
+
appearance: SpotAppearance;
|
|
11
|
+
fill: SpotFill;
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
}) => SpotStyles;
|
|
14
|
+
//# sourceMappingURL=useSpotStyles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useSpotStyles.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/Components/core/Spot/useSpotStyles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAIzD,OAAO,KAAK,EAAE,cAAc,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAUlE,MAAM,MAAM,UAAU,GAAG;IACvB,IAAI,EAAE,SAAS,CAAC;IAChB,IAAI,EAAE,SAAS,CAAC;IAChB,UAAU,EAAE,SAAS,CAAC;CACvB,CAAC;AAEF,eAAO,MAAM,aAAa,GAAI,uCAK3B;IACD,IAAI,EAAE,QAAQ,CAAC;IACf,UAAU,EAAE,cAAc,CAAC;IAC3B,IAAI,EAAE,QAAQ,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,KAAG,UAwFH,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Subheader.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/Components/core/Subheader/Subheader.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Subheader.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/Components/core/Subheader/Subheader.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EACV,mBAAmB,EACnB,yBAAyB,EACzB,kBAAkB,EAClB,cAAc,EACd,iBAAiB,EACjB,sBAAsB,EACtB,mBAAmB,EACpB,MAAM,SAAS,CAAC;AAEjB;;GAEG;AACH,eAAO,MAAM,cAAc,GAAI,mCAK5B,mBAAmB,4CAyBrB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,YAAY,GAAI,4CAM1B,iBAAiB,4CA8BnB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,cAAc,GAAI,wCAM5B,mBAAmB,4CAqBrB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,aAAa,GAAI,+BAI3B,kBAAkB,4CAYpB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,iBAAiB,GAAI,yBAI/B,sBAAsB,4CAoBxB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,oBAAoB,GAAI,mCAKlC,yBAAyB,4CAkB3B,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,eAAO,MAAM,SAAS,GAAI,mCAKvB,cAAc,4CAiBhB,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { PropsWithChildren } from 'react';
|
|
2
2
|
import type { ColorSchemeName } from 'react-native';
|
|
3
|
-
import type { SupportedLocale } from '../../../../i18n/languages';
|
|
4
3
|
import type { LumenThemes } from '../../../../styles';
|
|
4
|
+
import type { SupportedLocale } from '../../../../translations/languages';
|
|
5
5
|
export type ThemeProviderProps = PropsWithChildren & {
|
|
6
6
|
/**
|
|
7
7
|
* The colors scheme of the theme.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/Components/core/ThemeProvider/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAC/C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/Components/core/ThemeProvider/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAC/C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oCAAoC,CAAC;AAE1E,MAAM,MAAM,kBAAkB,GAAG,iBAAiB,GAAG;IACnD;;OAEG;IACH,WAAW,CAAC,EAAE,eAAe,CAAC;IAC9B;;;;OAIG;IACH,MAAM,CAAC,EAAE,eAAe,CAAC;IACzB;;OAEG;IACH,MAAM,EAAE,WAAW,CAAC;CACrB,CAAC"}
|
|
@@ -15,7 +15,7 @@ import type { TileContentProps, TileDescriptionProps, TileProps, TileTitleProps,
|
|
|
15
15
|
* import { Wallet } from '@ledgerhq/lumen-ui-rnative/symbols';
|
|
16
16
|
*
|
|
17
17
|
* <Tile appearance="card" onPress={() => console.log('Pressed!')}>
|
|
18
|
-
* <Spot
|
|
18
|
+
* <Spot icon={Wallet} />
|
|
19
19
|
* <TileContent>
|
|
20
20
|
* <TileTitle>My Wallet</TileTitle>
|
|
21
21
|
* <TileDescription>Description</TileDescription>
|
|
@@ -28,7 +28,7 @@ import type { TileContentProps, TileDescriptionProps, TileProps, TileTitleProps,
|
|
|
28
28
|
* import { Bitcoin } from '@ledgerhq/lumen-ui-rnative/symbols';
|
|
29
29
|
*
|
|
30
30
|
* <Tile appearance="card" onLongPress={() => console.log('Long pressed')}>
|
|
31
|
-
* <Spot
|
|
31
|
+
* <Spot icon={Bitcoin} />
|
|
32
32
|
* <TileContent>
|
|
33
33
|
* <TileTitle>Bitcoin</TileTitle>
|
|
34
34
|
* <TileTrailingContent>
|
|
@@ -81,7 +81,7 @@ export declare const TileDescription: ({ children, lx, style, }: TileDescription
|
|
|
81
81
|
*
|
|
82
82
|
* @example
|
|
83
83
|
* <Tile>
|
|
84
|
-
* <TileSpot
|
|
84
|
+
* <TileSpot icon={Settings} />
|
|
85
85
|
* <TileContent>
|
|
86
86
|
* <TileTitle>My Title</TileTitle>
|
|
87
87
|
* <TileDescription>Description</TileDescription>
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AiBubble icon component for React Native.
|
|
3
|
+
*
|
|
4
|
+
* This icon component is automatically generated from SVG files and uses the createIcon utility
|
|
5
|
+
* to create a consistent icon interface. It supports all standard SVG props (from react-native-svg)
|
|
6
|
+
* and additional size variants defined in the Icon component.
|
|
7
|
+
*
|
|
8
|
+
* @component
|
|
9
|
+
* @param {16 | 20 | 24 | 40 | 48 | 56} [size=24] - The size of the icon in pixels.
|
|
10
|
+
* @param {string} [color] - The color of the icon.
|
|
11
|
+
* @param {SVGProps} [...props] - All standard SVG element props (from react-native-svg).
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* // Basic usage with default size (24px)
|
|
15
|
+
* import { AiBubble } from '@ledgerhq/lumen-ui-rnative/symbols';
|
|
16
|
+
*
|
|
17
|
+
* <AiBubble />
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* // With custom size and style
|
|
21
|
+
* <AiBubble size={40} color="warning" lx={{ marginTop: 's4' }} />
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
* // Used within a Button component
|
|
25
|
+
* import { Button } from '@ledgerhq/lumen-ui-rnative';
|
|
26
|
+
*
|
|
27
|
+
* <Button icon={AiBubble} size="md">
|
|
28
|
+
* Click me
|
|
29
|
+
* </Button>
|
|
30
|
+
*/
|
|
31
|
+
export declare const AiBubble: {
|
|
32
|
+
({ disabled, ...props }: Omit<import("../Icon").IconProps, "children">): import("react").FunctionComponentElement<import("../Icon").IconProps>;
|
|
33
|
+
displayName: string;
|
|
34
|
+
};
|
|
35
|
+
//# sourceMappingURL=AiBubble.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AiBubble.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/Components/symbols/icons/AiBubble.tsx"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,eAAO,MAAM,QAAQ;;;CAiBpB,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ArrowBottomLeft icon component for React Native.
|
|
3
|
+
*
|
|
4
|
+
* This icon component is automatically generated from SVG files and uses the createIcon utility
|
|
5
|
+
* to create a consistent icon interface. It supports all standard SVG props (from react-native-svg)
|
|
6
|
+
* and additional size variants defined in the Icon component.
|
|
7
|
+
*
|
|
8
|
+
* @component
|
|
9
|
+
* @param {16 | 20 | 24 | 40 | 48 | 56} [size=24] - The size of the icon in pixels.
|
|
10
|
+
* @param {string} [color] - The color of the icon.
|
|
11
|
+
* @param {SVGProps} [...props] - All standard SVG element props (from react-native-svg).
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* // Basic usage with default size (24px)
|
|
15
|
+
* import { ArrowBottomLeft } from '@ledgerhq/lumen-ui-rnative/symbols';
|
|
16
|
+
*
|
|
17
|
+
* <ArrowBottomLeft />
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* // With custom size and style
|
|
21
|
+
* <ArrowBottomLeft size={40} color="warning" lx={{ marginTop: 's4' }} />
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
* // Used within a Button component
|
|
25
|
+
* import { Button } from '@ledgerhq/lumen-ui-rnative';
|
|
26
|
+
*
|
|
27
|
+
* <Button icon={ArrowBottomLeft} size="md">
|
|
28
|
+
* Click me
|
|
29
|
+
* </Button>
|
|
30
|
+
*/
|
|
31
|
+
export declare const ArrowBottomLeft: {
|
|
32
|
+
({ disabled, ...props }: Omit<import("../Icon").IconProps, "children">): import("react").FunctionComponentElement<import("../Icon").IconProps>;
|
|
33
|
+
displayName: string;
|
|
34
|
+
};
|
|
35
|
+
//# sourceMappingURL=ArrowBottomLeft.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ArrowBottomLeft.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/Components/symbols/icons/ArrowBottomLeft.tsx"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,eAAO,MAAM,eAAe;;;CAU3B,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Hourglass icon component for React Native.
|
|
3
|
+
*
|
|
4
|
+
* This icon component is automatically generated from SVG files and uses the createIcon utility
|
|
5
|
+
* to create a consistent icon interface. It supports all standard SVG props (from react-native-svg)
|
|
6
|
+
* and additional size variants defined in the Icon component.
|
|
7
|
+
*
|
|
8
|
+
* @component
|
|
9
|
+
* @param {16 | 20 | 24 | 40 | 48 | 56} [size=24] - The size of the icon in pixels.
|
|
10
|
+
* @param {string} [color] - The color of the icon.
|
|
11
|
+
* @param {SVGProps} [...props] - All standard SVG element props (from react-native-svg).
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* // Basic usage with default size (24px)
|
|
15
|
+
* import { Hourglass } from '@ledgerhq/lumen-ui-rnative/symbols';
|
|
16
|
+
*
|
|
17
|
+
* <Hourglass />
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* // With custom size and style
|
|
21
|
+
* <Hourglass size={40} color="warning" lx={{ marginTop: 's4' }} />
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
* // Used within a Button component
|
|
25
|
+
* import { Button } from '@ledgerhq/lumen-ui-rnative';
|
|
26
|
+
*
|
|
27
|
+
* <Button icon={Hourglass} size="md">
|
|
28
|
+
* Click me
|
|
29
|
+
* </Button>
|
|
30
|
+
*/
|
|
31
|
+
export declare const Hourglass: {
|
|
32
|
+
({ disabled, ...props }: Omit<import("../Icon").IconProps, "children">): import("react").FunctionComponentElement<import("../Icon").IconProps>;
|
|
33
|
+
displayName: string;
|
|
34
|
+
};
|
|
35
|
+
//# sourceMappingURL=Hourglass.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Hourglass.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/Components/symbols/icons/Hourglass.tsx"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,eAAO,MAAM,SAAS;;;CAUrB,CAAC"}
|