@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
|
@@ -0,0 +1,464 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { createSafeContext, isTextChildren } from '@ledgerhq/lumen-utils-shared';
|
|
4
|
+
import { Children, Fragment, isValidElement } from 'react';
|
|
5
|
+
import { StyleSheet } from 'react-native';
|
|
6
|
+
import { useStyleSheet } from "../../../../styles/index.js";
|
|
7
|
+
import { Box, Text } from "../../primitives/index.js";
|
|
8
|
+
import { CheckmarkCircleFill, ClockFill, DeleteCircleFill } from "../../symbols/index.js";
|
|
9
|
+
import { Spinner } from "../Spinner/index.js";
|
|
10
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
11
|
+
const flattenTimelineChildren = (children, keyPrefix = '') => Children.toArray(children).flatMap((child, index) => {
|
|
12
|
+
const key = `${keyPrefix}${ /*#__PURE__*/isValidElement(child) ? child.key ?? index : index}`;
|
|
13
|
+
if (/*#__PURE__*/isValidElement(child) && child.type === Fragment) {
|
|
14
|
+
return flattenTimelineChildren(child.props.children, `${key}/`);
|
|
15
|
+
}
|
|
16
|
+
return [{
|
|
17
|
+
key,
|
|
18
|
+
node: child
|
|
19
|
+
}];
|
|
20
|
+
});
|
|
21
|
+
const [TimelineItemProvider, useTimelineItemContext] = createSafeContext('TimelineItem');
|
|
22
|
+
const [TimelinePositionProvider, useTimelinePosition] = createSafeContext('Timeline', {
|
|
23
|
+
isFirst: true,
|
|
24
|
+
isLast: true
|
|
25
|
+
});
|
|
26
|
+
const useTimelineStyles = () => useStyleSheet(t => ({
|
|
27
|
+
root: {
|
|
28
|
+
width: t.sizes.full,
|
|
29
|
+
minWidth: 0,
|
|
30
|
+
flexDirection: 'column'
|
|
31
|
+
},
|
|
32
|
+
item: {
|
|
33
|
+
width: t.sizes.full,
|
|
34
|
+
minWidth: 0,
|
|
35
|
+
flexDirection: 'column',
|
|
36
|
+
position: 'relative'
|
|
37
|
+
},
|
|
38
|
+
rail: {
|
|
39
|
+
position: 'absolute',
|
|
40
|
+
top: 0,
|
|
41
|
+
bottom: 0,
|
|
42
|
+
start: 0,
|
|
43
|
+
width: t.sizes.s32,
|
|
44
|
+
flexDirection: 'column',
|
|
45
|
+
alignItems: 'center'
|
|
46
|
+
},
|
|
47
|
+
line: {
|
|
48
|
+
width: t.borderWidth.s2,
|
|
49
|
+
backgroundColor: t.colors.border.mutedSubtleHover
|
|
50
|
+
},
|
|
51
|
+
lineIn: {
|
|
52
|
+
height: t.sizes.s16
|
|
53
|
+
},
|
|
54
|
+
lineInHidden: {
|
|
55
|
+
opacity: 0
|
|
56
|
+
},
|
|
57
|
+
indicatorSpacer: {
|
|
58
|
+
height: t.sizes.s32,
|
|
59
|
+
flexShrink: 0
|
|
60
|
+
},
|
|
61
|
+
lineOut: {
|
|
62
|
+
flex: 1
|
|
63
|
+
},
|
|
64
|
+
indicator: {
|
|
65
|
+
marginTop: t.spacings.s16,
|
|
66
|
+
width: t.sizes.s32,
|
|
67
|
+
height: t.sizes.s32,
|
|
68
|
+
flexShrink: 0,
|
|
69
|
+
alignSelf: 'flex-start',
|
|
70
|
+
alignItems: 'center',
|
|
71
|
+
justifyContent: 'center'
|
|
72
|
+
},
|
|
73
|
+
neutralDot: {
|
|
74
|
+
width: t.sizes.s12,
|
|
75
|
+
height: t.sizes.s12,
|
|
76
|
+
borderRadius: t.borderRadius.full,
|
|
77
|
+
backgroundColor: t.colors.bg.mutedPressed
|
|
78
|
+
},
|
|
79
|
+
idleRing: {
|
|
80
|
+
width: t.sizes.s20,
|
|
81
|
+
height: t.sizes.s20,
|
|
82
|
+
borderRadius: t.borderRadius.full,
|
|
83
|
+
borderWidth: t.borderWidth.s2,
|
|
84
|
+
borderColor: t.colors.border.mutedSubtleHover
|
|
85
|
+
},
|
|
86
|
+
header: {
|
|
87
|
+
flexDirection: 'row',
|
|
88
|
+
alignItems: 'center',
|
|
89
|
+
minHeight: t.sizes.s64,
|
|
90
|
+
minWidth: 0,
|
|
91
|
+
gap: t.spacings.s8
|
|
92
|
+
},
|
|
93
|
+
leading: {
|
|
94
|
+
flex: 1,
|
|
95
|
+
minWidth: 0,
|
|
96
|
+
flexDirection: 'column',
|
|
97
|
+
gap: t.spacings.s2
|
|
98
|
+
},
|
|
99
|
+
leadingRow: {
|
|
100
|
+
flexDirection: 'row',
|
|
101
|
+
alignItems: 'center',
|
|
102
|
+
minWidth: 0,
|
|
103
|
+
gap: t.spacings.s4
|
|
104
|
+
},
|
|
105
|
+
caption: StyleSheet.flatten([t.typographies.body4, {
|
|
106
|
+
minWidth: 0,
|
|
107
|
+
flexShrink: 1,
|
|
108
|
+
color: t.colors.text.muted
|
|
109
|
+
}]),
|
|
110
|
+
description: StyleSheet.flatten([t.typographies.body3, {
|
|
111
|
+
minWidth: 0,
|
|
112
|
+
flexShrink: 1,
|
|
113
|
+
color: t.colors.text.muted
|
|
114
|
+
}]),
|
|
115
|
+
trailing: {
|
|
116
|
+
marginStart: 'auto',
|
|
117
|
+
flexShrink: 0,
|
|
118
|
+
flexDirection: 'column',
|
|
119
|
+
alignItems: 'flex-end'
|
|
120
|
+
},
|
|
121
|
+
body: {
|
|
122
|
+
marginStart: t.spacings.s40,
|
|
123
|
+
minWidth: 0,
|
|
124
|
+
paddingTop: t.spacings.s8,
|
|
125
|
+
paddingBottom: t.spacings.s12
|
|
126
|
+
}
|
|
127
|
+
}), []);
|
|
128
|
+
const useTitleStyles = muted => useStyleSheet(t => ({
|
|
129
|
+
title: StyleSheet.flatten([t.typographies.body2SemiBold, {
|
|
130
|
+
minWidth: 0,
|
|
131
|
+
flexShrink: 1,
|
|
132
|
+
color: muted ? t.colors.text.muted : t.colors.text.base
|
|
133
|
+
}])
|
|
134
|
+
}), [muted]);
|
|
135
|
+
const TimelineIndicator = ({
|
|
136
|
+
status
|
|
137
|
+
}) => {
|
|
138
|
+
const styles = useTimelineStyles();
|
|
139
|
+
const decorative = status !== 'loading';
|
|
140
|
+
const indicatorByStatus = {
|
|
141
|
+
success: /*#__PURE__*/_jsx(CheckmarkCircleFill, {
|
|
142
|
+
accessible: false,
|
|
143
|
+
color: "success",
|
|
144
|
+
size: 24,
|
|
145
|
+
testID: "timeline-indicator-success"
|
|
146
|
+
}),
|
|
147
|
+
error: /*#__PURE__*/_jsx(DeleteCircleFill, {
|
|
148
|
+
accessible: false,
|
|
149
|
+
color: "error",
|
|
150
|
+
size: 24,
|
|
151
|
+
testID: "timeline-indicator-error"
|
|
152
|
+
}),
|
|
153
|
+
pending: /*#__PURE__*/_jsx(ClockFill, {
|
|
154
|
+
accessible: false,
|
|
155
|
+
color: "muted",
|
|
156
|
+
size: 24,
|
|
157
|
+
testID: "timeline-indicator-pending"
|
|
158
|
+
}),
|
|
159
|
+
loading: /*#__PURE__*/_jsx(Spinner, {
|
|
160
|
+
color: "muted",
|
|
161
|
+
size: 24,
|
|
162
|
+
testID: "timeline-indicator-loading"
|
|
163
|
+
}),
|
|
164
|
+
idle: /*#__PURE__*/_jsx(Box, {
|
|
165
|
+
accessible: false,
|
|
166
|
+
style: styles.idleRing,
|
|
167
|
+
testID: "timeline-indicator-idle"
|
|
168
|
+
})
|
|
169
|
+
};
|
|
170
|
+
return /*#__PURE__*/_jsx(Box, {
|
|
171
|
+
accessibilityElementsHidden: decorative,
|
|
172
|
+
importantForAccessibility: decorative ? 'no-hide-descendants' : 'auto',
|
|
173
|
+
style: styles.indicator,
|
|
174
|
+
children: status ? indicatorByStatus[status] : /*#__PURE__*/_jsx(Box, {
|
|
175
|
+
accessible: false,
|
|
176
|
+
style: styles.neutralDot,
|
|
177
|
+
testID: "timeline-indicator-neutral"
|
|
178
|
+
})
|
|
179
|
+
});
|
|
180
|
+
};
|
|
181
|
+
const TimelineRail = () => {
|
|
182
|
+
const styles = useTimelineStyles();
|
|
183
|
+
const {
|
|
184
|
+
isFirst,
|
|
185
|
+
isLast
|
|
186
|
+
} = useTimelinePosition({
|
|
187
|
+
consumerName: 'TimelineItem',
|
|
188
|
+
contextRequired: false
|
|
189
|
+
});
|
|
190
|
+
return /*#__PURE__*/_jsxs(Box, {
|
|
191
|
+
accessibilityElementsHidden: true,
|
|
192
|
+
importantForAccessibility: "no-hide-descendants",
|
|
193
|
+
pointerEvents: "none",
|
|
194
|
+
style: styles.rail,
|
|
195
|
+
children: [/*#__PURE__*/_jsx(Box, {
|
|
196
|
+
style: StyleSheet.flatten([styles.line, styles.lineIn, isFirst && styles.lineInHidden]),
|
|
197
|
+
testID: "timeline-line-in"
|
|
198
|
+
}), /*#__PURE__*/_jsx(Box, {
|
|
199
|
+
style: styles.indicatorSpacer
|
|
200
|
+
}), !isLast && /*#__PURE__*/_jsx(Box, {
|
|
201
|
+
style: StyleSheet.flatten([styles.line, styles.lineOut]),
|
|
202
|
+
testID: "timeline-line-out"
|
|
203
|
+
})]
|
|
204
|
+
});
|
|
205
|
+
};
|
|
206
|
+
|
|
207
|
+
/**
|
|
208
|
+
* Vertical timeline. Lays out its items and holds no state of its own.
|
|
209
|
+
*
|
|
210
|
+
* @see {@link https://ldls-react-native.vercel.app/?path=/docs/rnative-timeline--docs Storybook}
|
|
211
|
+
*
|
|
212
|
+
* @example
|
|
213
|
+
* <Timeline>
|
|
214
|
+
* <TimelineItem>
|
|
215
|
+
* <TimelineItemHeader>
|
|
216
|
+
* <TimelineItemLeading>
|
|
217
|
+
* <TimelineItemTitle>Payment confirmed</TimelineItemTitle>
|
|
218
|
+
* </TimelineItemLeading>
|
|
219
|
+
* </TimelineItemHeader>
|
|
220
|
+
* </TimelineItem>
|
|
221
|
+
* </Timeline>
|
|
222
|
+
*/
|
|
223
|
+
export const Timeline = ({
|
|
224
|
+
ref,
|
|
225
|
+
children,
|
|
226
|
+
lx,
|
|
227
|
+
style,
|
|
228
|
+
...props
|
|
229
|
+
}) => {
|
|
230
|
+
const styles = useTimelineStyles();
|
|
231
|
+
const items = flattenTimelineChildren(children);
|
|
232
|
+
return /*#__PURE__*/_jsx(Box, {
|
|
233
|
+
ref: ref,
|
|
234
|
+
lx: lx,
|
|
235
|
+
style: StyleSheet.flatten([styles.root, style]),
|
|
236
|
+
...props,
|
|
237
|
+
children: items.map(({
|
|
238
|
+
key,
|
|
239
|
+
node
|
|
240
|
+
}, index) => /*#__PURE__*/_jsx(TimelinePositionProvider, {
|
|
241
|
+
value: {
|
|
242
|
+
isFirst: index === 0,
|
|
243
|
+
isLast: index === items.length - 1
|
|
244
|
+
},
|
|
245
|
+
children: node
|
|
246
|
+
}, key))
|
|
247
|
+
});
|
|
248
|
+
};
|
|
249
|
+
|
|
250
|
+
/**
|
|
251
|
+
* One row of a timeline. Draws the indicator from `status` and the connector
|
|
252
|
+
* to the neighbouring items.
|
|
253
|
+
*/
|
|
254
|
+
export const TimelineItem = ({
|
|
255
|
+
ref,
|
|
256
|
+
status,
|
|
257
|
+
children,
|
|
258
|
+
lx,
|
|
259
|
+
style,
|
|
260
|
+
...props
|
|
261
|
+
}) => {
|
|
262
|
+
const styles = useTimelineStyles();
|
|
263
|
+
return /*#__PURE__*/_jsx(TimelineItemProvider, {
|
|
264
|
+
value: {
|
|
265
|
+
status
|
|
266
|
+
},
|
|
267
|
+
children: /*#__PURE__*/_jsxs(Box, {
|
|
268
|
+
ref: ref,
|
|
269
|
+
lx: lx,
|
|
270
|
+
style: StyleSheet.flatten([styles.item, style]),
|
|
271
|
+
testID: "timeline-item",
|
|
272
|
+
...props,
|
|
273
|
+
children: [/*#__PURE__*/_jsx(TimelineRail, {}), children]
|
|
274
|
+
})
|
|
275
|
+
});
|
|
276
|
+
};
|
|
277
|
+
|
|
278
|
+
/**
|
|
279
|
+
* Row beside the indicator. Holds the leading column and the trailing slot.
|
|
280
|
+
*/
|
|
281
|
+
export const TimelineItemHeader = ({
|
|
282
|
+
ref,
|
|
283
|
+
children,
|
|
284
|
+
lx,
|
|
285
|
+
style,
|
|
286
|
+
...props
|
|
287
|
+
}) => {
|
|
288
|
+
const styles = useTimelineStyles();
|
|
289
|
+
const {
|
|
290
|
+
status
|
|
291
|
+
} = useTimelineItemContext({
|
|
292
|
+
consumerName: 'TimelineItemHeader',
|
|
293
|
+
contextRequired: true
|
|
294
|
+
});
|
|
295
|
+
return /*#__PURE__*/_jsxs(Box, {
|
|
296
|
+
ref: ref,
|
|
297
|
+
lx: lx,
|
|
298
|
+
style: StyleSheet.flatten([styles.header, style]),
|
|
299
|
+
...props,
|
|
300
|
+
children: [/*#__PURE__*/_jsx(TimelineIndicator, {
|
|
301
|
+
status: status
|
|
302
|
+
}), children]
|
|
303
|
+
});
|
|
304
|
+
};
|
|
305
|
+
|
|
306
|
+
/**
|
|
307
|
+
* Caption, title, and description column.
|
|
308
|
+
*/
|
|
309
|
+
export const TimelineItemLeading = ({
|
|
310
|
+
ref,
|
|
311
|
+
children,
|
|
312
|
+
lx,
|
|
313
|
+
style,
|
|
314
|
+
...props
|
|
315
|
+
}) => {
|
|
316
|
+
const styles = useTimelineStyles();
|
|
317
|
+
return /*#__PURE__*/_jsx(Box, {
|
|
318
|
+
ref: ref,
|
|
319
|
+
lx: lx,
|
|
320
|
+
style: StyleSheet.flatten([styles.leading, style]),
|
|
321
|
+
...props,
|
|
322
|
+
children: children
|
|
323
|
+
});
|
|
324
|
+
};
|
|
325
|
+
|
|
326
|
+
/**
|
|
327
|
+
* Horizontal row for a title or description beside a tag.
|
|
328
|
+
*/
|
|
329
|
+
export const TimelineItemLeadingRow = ({
|
|
330
|
+
ref,
|
|
331
|
+
children,
|
|
332
|
+
lx,
|
|
333
|
+
style,
|
|
334
|
+
...props
|
|
335
|
+
}) => {
|
|
336
|
+
const styles = useTimelineStyles();
|
|
337
|
+
return /*#__PURE__*/_jsx(Box, {
|
|
338
|
+
ref: ref,
|
|
339
|
+
lx: lx,
|
|
340
|
+
style: StyleSheet.flatten([styles.leadingRow, style]),
|
|
341
|
+
...props,
|
|
342
|
+
children: children
|
|
343
|
+
});
|
|
344
|
+
};
|
|
345
|
+
|
|
346
|
+
/**
|
|
347
|
+
* Overline above the title.
|
|
348
|
+
*/
|
|
349
|
+
export const TimelineItemCaption = ({
|
|
350
|
+
ref,
|
|
351
|
+
children,
|
|
352
|
+
lx,
|
|
353
|
+
style,
|
|
354
|
+
...props
|
|
355
|
+
}) => {
|
|
356
|
+
const styles = useTimelineStyles();
|
|
357
|
+
return /*#__PURE__*/_jsx(Text, {
|
|
358
|
+
ref: ref,
|
|
359
|
+
allowFontScaling: false,
|
|
360
|
+
ellipsizeMode: "tail",
|
|
361
|
+
lx: lx,
|
|
362
|
+
numberOfLines: 1,
|
|
363
|
+
style: StyleSheet.flatten([styles.caption, style]),
|
|
364
|
+
...props,
|
|
365
|
+
children: children
|
|
366
|
+
});
|
|
367
|
+
};
|
|
368
|
+
|
|
369
|
+
/**
|
|
370
|
+
* Title. An `idle` item uses the muted tone.
|
|
371
|
+
*/
|
|
372
|
+
export const TimelineItemTitle = ({
|
|
373
|
+
ref,
|
|
374
|
+
children,
|
|
375
|
+
lx,
|
|
376
|
+
style,
|
|
377
|
+
...props
|
|
378
|
+
}) => {
|
|
379
|
+
const {
|
|
380
|
+
status
|
|
381
|
+
} = useTimelineItemContext({
|
|
382
|
+
consumerName: 'TimelineItemTitle',
|
|
383
|
+
contextRequired: true
|
|
384
|
+
});
|
|
385
|
+
const styles = useTitleStyles(status === 'idle');
|
|
386
|
+
return /*#__PURE__*/_jsx(Text, {
|
|
387
|
+
ref: ref,
|
|
388
|
+
allowFontScaling: false,
|
|
389
|
+
ellipsizeMode: "tail",
|
|
390
|
+
lx: lx,
|
|
391
|
+
numberOfLines: 1,
|
|
392
|
+
style: StyleSheet.flatten([styles.title, style]),
|
|
393
|
+
...props,
|
|
394
|
+
children: children
|
|
395
|
+
});
|
|
396
|
+
};
|
|
397
|
+
|
|
398
|
+
/**
|
|
399
|
+
* Description under the title.
|
|
400
|
+
*/
|
|
401
|
+
export const TimelineItemDescription = ({
|
|
402
|
+
ref,
|
|
403
|
+
children,
|
|
404
|
+
lx,
|
|
405
|
+
style,
|
|
406
|
+
...props
|
|
407
|
+
}) => {
|
|
408
|
+
const styles = useTimelineStyles();
|
|
409
|
+
return /*#__PURE__*/_jsx(Text, {
|
|
410
|
+
ref: ref,
|
|
411
|
+
allowFontScaling: false,
|
|
412
|
+
ellipsizeMode: "tail",
|
|
413
|
+
lx: lx,
|
|
414
|
+
numberOfLines: 1,
|
|
415
|
+
style: StyleSheet.flatten([styles.description, style]),
|
|
416
|
+
...props,
|
|
417
|
+
children: children
|
|
418
|
+
});
|
|
419
|
+
};
|
|
420
|
+
|
|
421
|
+
/**
|
|
422
|
+
* End-aligned slot in the header.
|
|
423
|
+
*/
|
|
424
|
+
export const TimelineItemTrailing = ({
|
|
425
|
+
ref,
|
|
426
|
+
children,
|
|
427
|
+
lx,
|
|
428
|
+
style,
|
|
429
|
+
...props
|
|
430
|
+
}) => {
|
|
431
|
+
const styles = useTimelineStyles();
|
|
432
|
+
return /*#__PURE__*/_jsx(Box, {
|
|
433
|
+
ref: ref,
|
|
434
|
+
lx: lx,
|
|
435
|
+
style: StyleSheet.flatten([styles.trailing, style]),
|
|
436
|
+
...props,
|
|
437
|
+
children: isTextChildren(children) ? /*#__PURE__*/_jsx(Text, {
|
|
438
|
+
children: children
|
|
439
|
+
}) : children
|
|
440
|
+
});
|
|
441
|
+
};
|
|
442
|
+
|
|
443
|
+
/**
|
|
444
|
+
* Block under the header, indented past the indicator.
|
|
445
|
+
*/
|
|
446
|
+
export const TimelineItemBody = ({
|
|
447
|
+
ref,
|
|
448
|
+
children,
|
|
449
|
+
lx,
|
|
450
|
+
style,
|
|
451
|
+
...props
|
|
452
|
+
}) => {
|
|
453
|
+
const styles = useTimelineStyles();
|
|
454
|
+
return /*#__PURE__*/_jsx(Box, {
|
|
455
|
+
ref: ref,
|
|
456
|
+
lx: lx,
|
|
457
|
+
style: StyleSheet.flatten([styles.body, style]),
|
|
458
|
+
...props,
|
|
459
|
+
children: isTextChildren(children) ? /*#__PURE__*/_jsx(Text, {
|
|
460
|
+
children: children
|
|
461
|
+
}) : children
|
|
462
|
+
});
|
|
463
|
+
};
|
|
464
|
+
//# sourceMappingURL=Timeline.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["createSafeContext","isTextChildren","Children","Fragment","isValidElement","StyleSheet","useStyleSheet","Box","Text","CheckmarkCircleFill","ClockFill","DeleteCircleFill","Spinner","jsx","_jsx","jsxs","_jsxs","flattenTimelineChildren","children","keyPrefix","toArray","flatMap","child","index","key","type","props","node","TimelineItemProvider","useTimelineItemContext","TimelinePositionProvider","useTimelinePosition","isFirst","isLast","useTimelineStyles","t","root","width","sizes","full","minWidth","flexDirection","item","position","rail","top","bottom","start","s32","alignItems","line","borderWidth","s2","backgroundColor","colors","border","mutedSubtleHover","lineIn","height","s16","lineInHidden","opacity","indicatorSpacer","flexShrink","lineOut","flex","indicator","marginTop","spacings","alignSelf","justifyContent","neutralDot","s12","borderRadius","bg","mutedPressed","idleRing","s20","borderColor","header","minHeight","s64","gap","s8","leading","leadingRow","s4","caption","flatten","typographies","body4","color","text","muted","description","body3","trailing","marginStart","body","s40","paddingTop","paddingBottom","useTitleStyles","title","body2SemiBold","base","TimelineIndicator","status","styles","decorative","indicatorByStatus","success","accessible","size","testID","error","pending","loading","idle","style","accessibilityElementsHidden","importantForAccessibility","TimelineRail","consumerName","contextRequired","pointerEvents","Timeline","ref","lx","items","map","value","length","TimelineItem","TimelineItemHeader","TimelineItemLeading","TimelineItemLeadingRow","TimelineItemCaption","allowFontScaling","ellipsizeMode","numberOfLines","TimelineItemTitle","TimelineItemDescription","TimelineItemTrailing","TimelineItemBody"],"sourceRoot":"../../../../../../src","sources":["lib/Components/core/Timeline/Timeline.tsx"],"mappings":";;AAAA,SACEA,iBAAiB,EACjBC,cAAc,QACT,8BAA8B;AAErC,SAASC,QAAQ,EAAEC,QAAQ,EAAEC,cAAc,QAAQ,OAAO;AAC1D,SAASC,UAAU,QAAQ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H,GAAG,EAAEA,GAAI;IACTC,EAAE,EAAEA,EAAG;IACPT,KAAK,EAAElH,UAAU,CAACmF,OAAO,CAAC,CAACoB,MAAM,CAACV,IAAI,EAAEqB,KAAK,CAAC,CAAE;IAAA,GAC5C7F,KAAK;IAAAR,QAAA,EAERjB,cAAc,CAACiB,QAAQ,CAAC,gBAAGJ,IAAA,CAACN,IAAI;MAAAU,QAAA,EAAEA;IAAQ,CAAO,CAAC,GAAGA;EAAQ,CAC3D,CAAC;AAEV,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { Meta, Canvas, Controls } from '@storybook/addon-docs/blocks';
|
|
2
|
+
import * as TimelineStories from './Timeline.stories';
|
|
3
|
+
|
|
4
|
+
<Meta title='Core/Timeline' of={TimelineStories} />
|
|
5
|
+
|
|
6
|
+
# Timeline
|
|
7
|
+
|
|
8
|
+
## Introduction
|
|
9
|
+
|
|
10
|
+
Timeline lays out a vertical sequence of events. Each item is a display: the parent passes `status` for the indicator and title tone.
|
|
11
|
+
|
|
12
|
+
> View in [Figma](https://www.figma.com/design/JxaLVMTWirCpU0rsbZ30k7/2.-Components-Library?node-id=21938-58196).
|
|
13
|
+
|
|
14
|
+
## Anatomy
|
|
15
|
+
|
|
16
|
+
<Canvas of={TimelineStories.Base} />
|
|
17
|
+
|
|
18
|
+
## Properties
|
|
19
|
+
|
|
20
|
+
<Canvas of={TimelineStories.Base} />
|
|
21
|
+
<Controls of={TimelineStories.Base} />
|
|
22
|
+
|
|
23
|
+
### Informative timeline
|
|
24
|
+
|
|
25
|
+
Omit `status`. Each item uses the filled dot and a base title. Use this for a log of events.
|
|
26
|
+
|
|
27
|
+
<Canvas of={TimelineStories.WithInformative} />
|
|
28
|
+
|
|
29
|
+
### Progress timeline
|
|
30
|
+
|
|
31
|
+
Set `status` on each item. `success`, `error`, `pending`, and `loading` use their icon and a base title. `idle` uses an empty circle and a muted title.
|
|
32
|
+
|
|
33
|
+
<Canvas of={TimelineStories.StatusShowcase} />
|
|
34
|
+
|
|
35
|
+
### Collapse
|
|
36
|
+
|
|
37
|
+
Timeline does not collapse an item. To show and hide `TimelineItemBody`, build it in the parent: keep the open state there, put a chevron in `TimelineItemTrailing`, and render the body only while that state is open.
|
|
38
|
+
|
|
39
|
+
<Canvas of={TimelineStories.WithCollapse} />
|
|
40
|
+
|
|
41
|
+
### Narrow width
|
|
42
|
+
|
|
43
|
+
Caption, title, and description truncate when the row runs out of room.
|
|
44
|
+
|
|
45
|
+
<Canvas of={TimelineStories.ResponsivenessShowcase} />
|
|
46
|
+
|
|
47
|
+
## Accessibility
|
|
48
|
+
|
|
49
|
+
Timeline is a display. The title carries the meaning of the item. Status icons are decorative, except the loading indicator, which exposes its own label.
|