jfs-components 0.0.99 → 0.1.2
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/CHANGELOG.md +18 -0
- package/lib/commonjs/components/AreaLineChart/AreaLineChart.js +1 -1
- package/lib/commonjs/components/Balance/Balance.js +17 -12
- package/lib/commonjs/components/Card/Card.js +2 -1
- package/lib/commonjs/components/CardFeedback/CardFeedback.js +2 -1
- package/lib/commonjs/components/Checkbox/Checkbox.js +2 -1
- package/lib/commonjs/components/Drawer/Drawer.js +13 -4
- package/lib/commonjs/components/Dropdown/Dropdown.js +37 -18
- package/lib/commonjs/components/DropdownInput/DropdownInput.js +1 -1
- package/lib/commonjs/components/FullscreenModal/FullscreenModal.js +65 -4
- package/lib/commonjs/components/Image/Image.js +11 -5
- package/lib/commonjs/components/LottiePlayer/loadNativeLottieView.js +8 -13
- package/lib/commonjs/components/Overlay/Overlay.js +92 -0
- package/lib/commonjs/components/PlanComparisonCard/PlanComparisonCard.js +2 -1
- package/lib/commonjs/components/TestimonialsCard/TestimonialsCard.js +121 -0
- package/lib/commonjs/components/TextInput/TextInput.js +2 -1
- package/lib/commonjs/components/docs/modeControls.js +116 -0
- package/lib/commonjs/components/index.js +14 -0
- package/lib/commonjs/design-tokens/JFSThemeProvider.js +1 -1
- package/lib/commonjs/design-tokens/figma-modes.generated.js +391 -0
- package/lib/commonjs/design-tokens/index.js +11 -0
- package/lib/commonjs/icons/registry.js +1 -1
- package/lib/module/components/Accordion/Accordion.js +1 -2
- package/lib/module/components/AreaLineChart/AreaLineChart.js +1 -1
- package/lib/module/components/Balance/Balance.js +18 -13
- package/lib/module/components/Card/Card.js +1 -2
- package/lib/module/components/CardFeedback/CardFeedback.js +1 -2
- package/lib/module/components/Checkbox/Checkbox.js +1 -2
- package/lib/module/components/Drawer/Drawer.js +12 -4
- package/lib/module/components/Dropdown/Dropdown.js +37 -18
- package/lib/module/components/DropdownInput/DropdownInput.js +1 -1
- package/lib/module/components/FullscreenModal/FullscreenModal.js +67 -7
- package/lib/module/components/Image/Image.js +11 -5
- package/lib/module/components/InstitutionBadge/InstitutionBadge.js +1 -2
- package/lib/module/components/LottiePlayer/loadNativeLottieView.js +8 -13
- package/lib/module/components/MoneyValue/MoneyValue.js +1 -2
- package/lib/module/components/OTP/OTP.js +1 -2
- package/lib/module/components/Overlay/Overlay.js +87 -0
- package/lib/module/components/PlanComparisonCard/PlanComparisonCard.js +1 -2
- package/lib/module/components/PoweredByLabel/PoweredByLabel.js +1 -2
- package/lib/module/components/RechargeCard/RechargeCard.js +1 -2
- package/lib/module/components/Section/Section.js +1 -2
- package/lib/module/components/TestimonialsCard/TestimonialsCard.js +116 -0
- package/lib/module/components/TextInput/TextInput.js +1 -2
- package/lib/module/components/UpiHandle/UpiHandle.js +1 -2
- package/lib/module/components/docs/modeControls.js +111 -0
- package/lib/module/components/index.js +2 -0
- package/lib/module/design-tokens/JFSThemeProvider.js +1 -1
- package/lib/module/design-tokens/figma-modes.generated.js +387 -0
- package/lib/module/design-tokens/index.js +2 -1
- package/lib/module/icons/registry.js +1 -1
- package/lib/module/utils/react-utils.js +0 -1
- package/lib/typescript/scripts/extract-component-tokens.d.ts +1 -1
- package/lib/typescript/scripts/generate-mode-types.d.ts +2 -0
- package/lib/typescript/scripts/retype-modes.d.cts +2 -0
- package/lib/typescript/src/components/Accordion/Accordion.d.ts +2 -1
- package/lib/typescript/src/components/AccordionCheckbox/AccordionCheckbox.d.ts +2 -1
- package/lib/typescript/src/components/AccountCard/AccountCard.d.ts +2 -1
- package/lib/typescript/src/components/ActionFooter/ActionFooter.d.ts +2 -1
- package/lib/typescript/src/components/ActionTile/ActionTile.d.ts +2 -1
- package/lib/typescript/src/components/AllocationComparisonChart/AllocationComparisonChart.d.ts +2 -1
- package/lib/typescript/src/components/AmountInput/AmountInput.d.ts +2 -1
- package/lib/typescript/src/components/AppBar/AppBar.d.ts +2 -1
- package/lib/typescript/src/components/AreaLineChart/AreaLineChart.d.ts +3 -2
- package/lib/typescript/src/components/Attached/Attached.d.ts +2 -1
- package/lib/typescript/src/components/Avatar/Avatar.d.ts +2 -1
- package/lib/typescript/src/components/AvatarGroup/AvatarGroup.d.ts +2 -1
- package/lib/typescript/src/components/Badge/Badge.d.ts +2 -1
- package/lib/typescript/src/components/Balance/Balance.d.ts +2 -1
- package/lib/typescript/src/components/BottomNav/BottomNav.d.ts +2 -1
- package/lib/typescript/src/components/BottomNavItem/BottomNavItem.d.ts +2 -1
- package/lib/typescript/src/components/BrandChip/BrandChip.d.ts +2 -1
- package/lib/typescript/src/components/BubbleChart/BubbleChart.d.ts +2 -1
- package/lib/typescript/src/components/Button/Button.d.ts +2 -1
- package/lib/typescript/src/components/ButtonGroup/ButtonGroup.d.ts +2 -1
- package/lib/typescript/src/components/Card/Card.d.ts +3 -2
- package/lib/typescript/src/components/CardAdvisory/CardAdvisory.d.ts +2 -1
- package/lib/typescript/src/components/CardBankAccount/CardBankAccount.d.ts +2 -1
- package/lib/typescript/src/components/CardCTA/CardCTA.d.ts +2 -1
- package/lib/typescript/src/components/CardFeedback/CardFeedback.d.ts +7 -6
- package/lib/typescript/src/components/CardFinancialCondition/CardFinancialCondition.d.ts +2 -1
- package/lib/typescript/src/components/CardInsight/CardInsight.d.ts +2 -1
- package/lib/typescript/src/components/CardProviderInfo/CardProviderInfo.d.ts +2 -1
- package/lib/typescript/src/components/Carousel/Carousel.d.ts +4 -3
- package/lib/typescript/src/components/Checkbox/Checkbox.d.ts +2 -1
- package/lib/typescript/src/components/CheckboxGroup/CheckboxGroup.d.ts +2 -1
- package/lib/typescript/src/components/CheckboxItem/CheckboxItem.d.ts +2 -1
- package/lib/typescript/src/components/ChipGroup/ChipGroup.d.ts +2 -1
- package/lib/typescript/src/components/ChipSelect/ChipSelect.d.ts +2 -1
- package/lib/typescript/src/components/CircularProgressBar/CircularProgressBar.d.ts +2 -1
- package/lib/typescript/src/components/CircularProgressBarDoted/CircularProgressBarDoted.d.ts +2 -1
- package/lib/typescript/src/components/CircularRating/CircularRating.d.ts +2 -1
- package/lib/typescript/src/components/ClusterBubble/ClusterBubble.d.ts +2 -1
- package/lib/typescript/src/components/CoverageBarComparison/CoverageBarComparison.d.ts +3 -2
- package/lib/typescript/src/components/CoverageRing/CoverageRing.d.ts +2 -1
- package/lib/typescript/src/components/DebitCard/DebitCard.d.ts +2 -1
- package/lib/typescript/src/components/Disclaimer/Disclaimer.d.ts +2 -1
- package/lib/typescript/src/components/Divider/Divider.d.ts +2 -1
- package/lib/typescript/src/components/DonutChart/DonutChart.d.ts +4 -3
- package/lib/typescript/src/components/DonutChartSummary/DonutChartSummary.d.ts +3 -2
- package/lib/typescript/src/components/Drawer/Drawer.d.ts +15 -1
- package/lib/typescript/src/components/Dropdown/Dropdown.d.ts +3 -2
- package/lib/typescript/src/components/DropdownInput/DropdownInput.d.ts +2 -1
- package/lib/typescript/src/components/EmptyState/EmptyState.d.ts +2 -1
- package/lib/typescript/src/components/ExpandableCheckbox/ExpandableCheckbox.d.ts +2 -1
- package/lib/typescript/src/components/FilterBar/FilterBar.d.ts +3 -2
- package/lib/typescript/src/components/Form/Form.d.ts +2 -1
- package/lib/typescript/src/components/FormField/FormField.d.ts +2 -1
- package/lib/typescript/src/components/FullscreenModal/FullscreenModal.d.ts +9 -2
- package/lib/typescript/src/components/Gauge/Gauge.d.ts +2 -1
- package/lib/typescript/src/components/HStack/HStack.d.ts +2 -1
- package/lib/typescript/src/components/HoldingsCard/HoldingsCard.d.ts +2 -1
- package/lib/typescript/src/components/Icon/Icon.d.ts +2 -1
- package/lib/typescript/src/components/IconButton/IconButton.d.ts +2 -1
- package/lib/typescript/src/components/IconCapsule/IconCapsule.d.ts +2 -1
- package/lib/typescript/src/components/Image/Image.d.ts +17 -1
- package/lib/typescript/src/components/InputSearch/InputSearch.d.ts +2 -1
- package/lib/typescript/src/components/InstitutionBadge/InstitutionBadge.d.ts +2 -1
- package/lib/typescript/src/components/LazyList/LazyList.d.ts +2 -1
- package/lib/typescript/src/components/LinearMeter/LinearMeter.d.ts +3 -2
- package/lib/typescript/src/components/LinearProgress/LinearProgress.d.ts +2 -1
- package/lib/typescript/src/components/ListGroup/ListGroup.d.ts +2 -1
- package/lib/typescript/src/components/ListItem/ListItem.d.ts +2 -1
- package/lib/typescript/src/components/LottieIntroBlock/LottieIntroBlock.d.ts +2 -1
- package/lib/typescript/src/components/LottiePlayer/LottiePlayer.d.ts +2 -1
- package/lib/typescript/src/components/LottiePlayer/LottiePlayer.web.d.ts +2 -1
- package/lib/typescript/src/components/MediaCard/MediaCard.d.ts +6 -5
- package/lib/typescript/src/components/MerchantProfile/MerchantProfile.d.ts +2 -1
- package/lib/typescript/src/components/MessageField/MessageField.d.ts +2 -1
- package/lib/typescript/src/components/MetricLegendItem/MetricLegendItem.d.ts +2 -1
- package/lib/typescript/src/components/MoneyValue/MoneyValue.d.ts +2 -1
- package/lib/typescript/src/components/MonthlyStatusGrid/MonthlyStatusGrid.d.ts +4 -3
- package/lib/typescript/src/components/NavArrow/NavArrow.d.ts +2 -1
- package/lib/typescript/src/components/NoteInput/NoteInput.d.ts +2 -1
- package/lib/typescript/src/components/Nudge/Nudge.d.ts +2 -1
- package/lib/typescript/src/components/Numpad/Numpad.d.ts +2 -1
- package/lib/typescript/src/components/OTP/OTP.d.ts +3 -2
- package/lib/typescript/src/components/Overlay/Overlay.d.ts +52 -0
- package/lib/typescript/src/components/PageHero/PageHero.d.ts +2 -1
- package/lib/typescript/src/components/PaymentFeedback/PaymentFeedback.d.ts +2 -1
- package/lib/typescript/src/components/PlanComparisonCard/PlanComparisonCard.d.ts +2 -1
- package/lib/typescript/src/components/Popup/Popup.d.ts +2 -1
- package/lib/typescript/src/components/PortfolioHero/PortfolioHero.d.ts +2 -1
- package/lib/typescript/src/components/PoweredByLabel/PoweredByLabel.d.ts +2 -1
- package/lib/typescript/src/components/ProductLabel/ProductLabel.d.ts +2 -1
- package/lib/typescript/src/components/ProductOverview/ProductOverview.d.ts +2 -1
- package/lib/typescript/src/components/ProgressBadge/ProgressBadge.d.ts +2 -1
- package/lib/typescript/src/components/Radio/Radio.d.ts +2 -1
- package/lib/typescript/src/components/RangeTrack/RangeTrack.d.ts +3 -2
- package/lib/typescript/src/components/RechargeCard/RechargeCard.d.ts +2 -1
- package/lib/typescript/src/components/SavingsGoalSummary/SavingsGoalSummary.d.ts +2 -1
- package/lib/typescript/src/components/Screen/Screen.d.ts +2 -1
- package/lib/typescript/src/components/Section/Section.d.ts +3 -2
- package/lib/typescript/src/components/SegmentedControl/SegmentedControl.d.ts +2 -1
- package/lib/typescript/src/components/SegmentedTrack/SegmentedTrack.d.ts +4 -3
- package/lib/typescript/src/components/Slot/Slot.d.ts +2 -1
- package/lib/typescript/src/components/Spinner/Spinner.d.ts +2 -1
- package/lib/typescript/src/components/StatGroup/StatGroup.d.ts +2 -1
- package/lib/typescript/src/components/StatItem/StatItem.d.ts +2 -1
- package/lib/typescript/src/components/StatusHero/StatusHero.d.ts +2 -1
- package/lib/typescript/src/components/Stepper/Step.d.ts +2 -1
- package/lib/typescript/src/components/Stepper/StepLabel.d.ts +2 -1
- package/lib/typescript/src/components/Stepper/Stepper.d.ts +2 -1
- package/lib/typescript/src/components/StrengthIndicator/StrengthIndicator.d.ts +2 -1
- package/lib/typescript/src/components/SuggestiveSearch/SuggestiveSearch.d.ts +2 -1
- package/lib/typescript/src/components/SummaryTile/SummaryTile.d.ts +2 -1
- package/lib/typescript/src/components/SupportText/SupportText.d.ts +2 -1
- package/lib/typescript/src/components/SupportText/SupportTextIcon.d.ts +2 -1
- package/lib/typescript/src/components/SwappableAmount/SwappableAmount.d.ts +2 -1
- package/lib/typescript/src/components/Tabs/TabItem.d.ts +2 -1
- package/lib/typescript/src/components/Tabs/Tabs.d.ts +2 -1
- package/lib/typescript/src/components/TestimonialsCard/TestimonialsCard.d.ts +52 -0
- package/lib/typescript/src/components/Text/Text.d.ts +2 -1
- package/lib/typescript/src/components/TextInput/TextInput.d.ts +3 -2
- package/lib/typescript/src/components/ThreadHero/ThreadHero.d.ts +2 -1
- package/lib/typescript/src/components/Title/Title.d.ts +2 -1
- package/lib/typescript/src/components/Toast/Toast.d.ts +2 -1
- package/lib/typescript/src/components/Toast/ToastProvider.d.ts +2 -1
- package/lib/typescript/src/components/Toast/useToast.d.ts +3 -2
- package/lib/typescript/src/components/Toggle/Toggle.d.ts +2 -1
- package/lib/typescript/src/components/Tooltip/Tooltip.d.ts +2 -1
- package/lib/typescript/src/components/TransactionBubble/TransactionBubble.d.ts +2 -1
- package/lib/typescript/src/components/TransactionDetails/TransactionDetails.d.ts +3 -2
- package/lib/typescript/src/components/TransactionStatus/TransactionStatus.d.ts +2 -1
- package/lib/typescript/src/components/UpiHandle/UpiHandle.d.ts +2 -1
- package/lib/typescript/src/components/VStack/VStack.d.ts +2 -1
- package/lib/typescript/src/components/docs/modeControls.d.ts +28 -0
- package/lib/typescript/src/components/index.d.ts +2 -0
- package/lib/typescript/src/design-tokens/JFSThemeProvider.d.ts +4 -3
- package/lib/typescript/src/design-tokens/figma-modes.generated.d.ts +264 -0
- package/lib/typescript/src/design-tokens/index.d.ts +1 -0
- package/lib/typescript/src/icons/registry.d.ts +1 -1
- package/lib/typescript/src/skeleton/Skeleton.d.ts +2 -1
- package/lib/typescript/src/utils/react-utils.d.ts +2 -1
- package/package.json +3 -2
- package/src/components/Accordion/Accordion.tsx +2 -1
- package/src/components/AccordionCheckbox/AccordionCheckbox.tsx +2 -1
- package/src/components/AccountCard/AccountCard.tsx +2 -1
- package/src/components/ActionFooter/ActionFooter.tsx +2 -1
- package/src/components/ActionTile/ActionTile.tsx +2 -1
- package/src/components/AllocationComparisonChart/AllocationComparisonChart.tsx +2 -1
- package/src/components/AmountInput/AmountInput.tsx +2 -1
- package/src/components/AppBar/AppBar.tsx +2 -1
- package/src/components/AreaLineChart/AreaLineChart.tsx +8 -7
- package/src/components/Attached/Attached.tsx +2 -1
- package/src/components/Avatar/Avatar.tsx +3 -2
- package/src/components/AvatarGroup/AvatarGroup.tsx +2 -1
- package/src/components/Badge/Badge.tsx +2 -1
- package/src/components/Balance/Balance.tsx +18 -12
- package/src/components/BottomNav/BottomNav.tsx +2 -1
- package/src/components/BottomNavItem/BottomNavItem.tsx +3 -2
- package/src/components/BrandChip/BrandChip.tsx +3 -2
- package/src/components/BubbleChart/BubbleChart.tsx +2 -1
- package/src/components/Button/Button.tsx +3 -2
- package/src/components/ButtonGroup/ButtonGroup.tsx +2 -1
- package/src/components/Card/Card.tsx +4 -3
- package/src/components/CardAdvisory/CardAdvisory.tsx +3 -2
- package/src/components/CardBankAccount/CardBankAccount.tsx +2 -1
- package/src/components/CardCTA/CardCTA.tsx +3 -2
- package/src/components/CardFeedback/CardFeedback.tsx +11 -10
- package/src/components/CardFinancialCondition/CardFinancialCondition.tsx +3 -2
- package/src/components/CardInsight/CardInsight.tsx +2 -1
- package/src/components/CardProviderInfo/CardProviderInfo.tsx +2 -1
- package/src/components/Carousel/Carousel.tsx +5 -4
- package/src/components/Checkbox/Checkbox.tsx +2 -1
- package/src/components/CheckboxGroup/CheckboxGroup.tsx +2 -1
- package/src/components/CheckboxItem/CheckboxItem.tsx +2 -1
- package/src/components/ChipGroup/ChipGroup.tsx +2 -1
- package/src/components/ChipSelect/ChipSelect.tsx +2 -1
- package/src/components/CircularProgressBar/CircularProgressBar.tsx +2 -1
- package/src/components/CircularProgressBarDoted/CircularProgressBarDoted.tsx +2 -1
- package/src/components/CircularRating/CircularRating.tsx +3 -2
- package/src/components/ClusterBubble/ClusterBubble.tsx +2 -1
- package/src/components/CoverageBarComparison/CoverageBarComparison.tsx +3 -2
- package/src/components/CoverageRing/CoverageRing.tsx +2 -1
- package/src/components/DebitCard/DebitCard.tsx +2 -1
- package/src/components/Disclaimer/Disclaimer.tsx +2 -1
- package/src/components/Divider/Divider.tsx +2 -1
- package/src/components/DonutChart/DonutChart.tsx +6 -5
- package/src/components/DonutChartSummary/DonutChartSummary.tsx +3 -2
- package/src/components/Drawer/Drawer.tsx +21 -1
- package/src/components/Dropdown/Dropdown.tsx +42 -21
- package/src/components/DropdownInput/DropdownInput.tsx +5 -4
- package/src/components/EmptyState/EmptyState.tsx +2 -1
- package/src/components/ExpandableCheckbox/ExpandableCheckbox.tsx +2 -1
- package/src/components/FilterBar/FilterBar.tsx +3 -2
- package/src/components/Form/Form.tsx +2 -1
- package/src/components/FormField/FormField.tsx +3 -2
- package/src/components/FullscreenModal/FullscreenModal.tsx +77 -12
- package/src/components/Gauge/Gauge.tsx +2 -1
- package/src/components/HStack/HStack.tsx +2 -1
- package/src/components/HoldingsCard/HoldingsCard.tsx +2 -1
- package/src/components/Icon/Icon.tsx +3 -2
- package/src/components/IconButton/IconButton.tsx +3 -2
- package/src/components/IconCapsule/IconCapsule.tsx +3 -2
- package/src/components/Image/Image.tsx +29 -5
- package/src/components/InputSearch/InputSearch.tsx +3 -2
- package/src/components/InstitutionBadge/InstitutionBadge.tsx +3 -2
- package/src/components/LazyList/LazyList.tsx +2 -1
- package/src/components/LinearMeter/LinearMeter.tsx +3 -2
- package/src/components/LinearProgress/LinearProgress.tsx +2 -1
- package/src/components/ListGroup/ListGroup.tsx +2 -1
- package/src/components/ListItem/ListItem.tsx +3 -2
- package/src/components/LottieIntroBlock/LottieIntroBlock.tsx +2 -1
- package/src/components/LottiePlayer/LottiePlayer.tsx +3 -2
- package/src/components/LottiePlayer/LottiePlayer.web.tsx +3 -2
- package/src/components/LottiePlayer/loadNativeLottieView.tsx +9 -13
- package/src/components/MediaCard/MediaCard.tsx +7 -6
- package/src/components/MerchantProfile/MerchantProfile.tsx +2 -1
- package/src/components/MessageField/MessageField.tsx +3 -2
- package/src/components/MetricLegendItem/MetricLegendItem.tsx +2 -1
- package/src/components/MoneyValue/MoneyValue.tsx +2 -1
- package/src/components/MonthlyStatusGrid/MonthlyStatusGrid.tsx +5 -4
- package/src/components/NavArrow/NavArrow.tsx +3 -2
- package/src/components/NoteInput/NoteInput.tsx +2 -1
- package/src/components/Nudge/Nudge.tsx +3 -2
- package/src/components/Numpad/Numpad.tsx +2 -1
- package/src/components/OTP/OTP.tsx +3 -2
- package/src/components/Overlay/Overlay.tsx +114 -0
- package/src/components/PageHero/PageHero.tsx +2 -1
- package/src/components/PaymentFeedback/PaymentFeedback.tsx +2 -1
- package/src/components/PlanComparisonCard/PlanComparisonCard.tsx +2 -1
- package/src/components/Popup/Popup.tsx +2 -1
- package/src/components/PortfolioHero/PortfolioHero.tsx +2 -1
- package/src/components/PoweredByLabel/PoweredByLabel.tsx +2 -1
- package/src/components/ProductLabel/ProductLabel.tsx +2 -1
- package/src/components/ProductOverview/ProductOverview.tsx +2 -1
- package/src/components/ProgressBadge/ProgressBadge.tsx +2 -1
- package/src/components/Radio/Radio.tsx +2 -1
- package/src/components/RangeTrack/RangeTrack.tsx +3 -2
- package/src/components/RechargeCard/RechargeCard.tsx +2 -1
- package/src/components/SavingsGoalSummary/SavingsGoalSummary.tsx +2 -1
- package/src/components/Screen/Screen.tsx +2 -1
- package/src/components/Section/Section.tsx +6 -5
- package/src/components/SegmentedControl/SegmentedControl.tsx +3 -2
- package/src/components/SegmentedTrack/SegmentedTrack.tsx +5 -4
- package/src/components/Slot/Slot.tsx +2 -1
- package/src/components/Spinner/Spinner.tsx +2 -1
- package/src/components/StatGroup/StatGroup.tsx +3 -2
- package/src/components/StatItem/StatItem.tsx +2 -1
- package/src/components/StatusHero/StatusHero.tsx +2 -1
- package/src/components/Stepper/Step.tsx +2 -1
- package/src/components/Stepper/StepLabel.tsx +2 -1
- package/src/components/Stepper/Stepper.tsx +2 -1
- package/src/components/StrengthIndicator/StrengthIndicator.tsx +2 -1
- package/src/components/SuggestiveSearch/SuggestiveSearch.tsx +4 -3
- package/src/components/SummaryTile/SummaryTile.tsx +2 -1
- package/src/components/SupportText/SupportText.tsx +2 -1
- package/src/components/SupportText/SupportTextIcon.tsx +2 -1
- package/src/components/SwappableAmount/SwappableAmount.tsx +2 -1
- package/src/components/Tabs/TabItem.tsx +2 -1
- package/src/components/Tabs/Tabs.tsx +2 -1
- package/src/components/TestimonialsCard/TestimonialsCard.tsx +163 -0
- package/src/components/Text/Text.tsx +2 -1
- package/src/components/TextInput/TextInput.tsx +3 -2
- package/src/components/ThreadHero/ThreadHero.tsx +2 -1
- package/src/components/Title/Title.tsx +2 -1
- package/src/components/Toast/Toast.tsx +2 -1
- package/src/components/Toast/ToastProvider.tsx +2 -1
- package/src/components/Toast/useToast.ts +3 -2
- package/src/components/Toggle/Toggle.tsx +2 -1
- package/src/components/Tooltip/Tooltip.tsx +3 -2
- package/src/components/TransactionBubble/TransactionBubble.tsx +2 -1
- package/src/components/TransactionDetails/TransactionDetails.tsx +3 -2
- package/src/components/TransactionStatus/TransactionStatus.tsx +3 -2
- package/src/components/UpiHandle/UpiHandle.tsx +3 -2
- package/src/components/VStack/VStack.tsx +2 -1
- package/src/components/docs/modeControls.tsx +122 -0
- package/src/components/index.ts +2 -0
- package/src/design-tokens/JFSThemeProvider.tsx +4 -3
- package/src/design-tokens/figma-modes.generated.ts +396 -0
- package/src/design-tokens/index.ts +1 -0
- package/src/icons/registry.ts +1 -1
- package/src/skeleton/Skeleton.tsx +2 -1
- package/src/utils/react-utils.ts +3 -2
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type StyleProp, type ViewStyle } from 'react-native';
|
|
3
|
+
import type { Modes } from '../../design-tokens';
|
|
3
4
|
export type SegmentedControlItem = {
|
|
4
5
|
key: React.Key;
|
|
5
6
|
label: string;
|
|
@@ -14,7 +15,7 @@ export type SegmentedControlProps = {
|
|
|
14
15
|
/** Callback fired when the selected segment changes */
|
|
15
16
|
onSelectionChange?: (key: React.Key) => void;
|
|
16
17
|
/** Design token modes for theming */
|
|
17
|
-
modes?:
|
|
18
|
+
modes?: Modes;
|
|
18
19
|
/** Override container styles */
|
|
19
20
|
style?: StyleProp<ViewStyle>;
|
|
20
21
|
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type StyleProp, type ViewStyle } from 'react-native';
|
|
3
|
+
import type { Modes } from '../../design-tokens';
|
|
3
4
|
/**
|
|
4
5
|
* Per-segment data definition for the data-driven `segments` prop.
|
|
5
6
|
*
|
|
@@ -31,7 +32,7 @@ export type SegmentedTrackSegmentData = {
|
|
|
31
32
|
* Per-segment design token mode overrides. Merged on top of the parent
|
|
32
33
|
* `modes` and the per-index Emphasis defaults.
|
|
33
34
|
*/
|
|
34
|
-
modes?:
|
|
35
|
+
modes?: Modes;
|
|
35
36
|
/** Override individual segment styles. */
|
|
36
37
|
style?: StyleProp<ViewStyle>;
|
|
37
38
|
/** Per-segment accessibility label. */
|
|
@@ -51,7 +52,7 @@ export type SegmentedTrackProps = {
|
|
|
51
52
|
*/
|
|
52
53
|
children?: React.ReactNode;
|
|
53
54
|
/** Design token modes for theming (e.g. `{ 'Color Mode': 'Light' }`). */
|
|
54
|
-
modes?:
|
|
55
|
+
modes?: Modes;
|
|
55
56
|
/** Override the container styles. */
|
|
56
57
|
style?: StyleProp<ViewStyle>;
|
|
57
58
|
/** Style applied to every segment (data-driven mode only). */
|
|
@@ -73,7 +74,7 @@ type SegmentedTrackSegmentProps = {
|
|
|
73
74
|
* Design token modes for the segment. Merged with parent `modes` and the
|
|
74
75
|
* per-index Emphasis defaults injected by the parent `SegmentedTrack`.
|
|
75
76
|
*/
|
|
76
|
-
modes?:
|
|
77
|
+
modes?: Modes | undefined;
|
|
77
78
|
/** Override the segment styles. */
|
|
78
79
|
style?: StyleProp<ViewStyle> | undefined;
|
|
79
80
|
/** Per-segment accessibility label. */
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type StyleProp, type ViewProps, type ViewStyle } from 'react-native';
|
|
3
|
+
import type { Modes } from '../../design-tokens';
|
|
3
4
|
export type SlotLayoutDirection = 'vertical' | 'horizontal';
|
|
4
5
|
export type SlotProps = ViewProps & {
|
|
5
6
|
/**
|
|
@@ -25,7 +26,7 @@ export type SlotProps = ViewProps & {
|
|
|
25
26
|
/**
|
|
26
27
|
* Mode configuration passed to the token resolver and cascaded to children.
|
|
27
28
|
*/
|
|
28
|
-
modes?:
|
|
29
|
+
modes?: Modes;
|
|
29
30
|
style?: StyleProp<ViewStyle>;
|
|
30
31
|
};
|
|
31
32
|
/**
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type StyleProp, type ViewProps, type ViewStyle } from 'react-native';
|
|
2
|
+
import type { Modes } from '../../design-tokens';
|
|
2
3
|
/**
|
|
3
4
|
* Per-segment colours, resolved from the Figma `spiner/*` tokens. Consumers can
|
|
4
5
|
* override any subset via the `colors` prop.
|
|
@@ -34,7 +35,7 @@ export type SpinnerProps = SpinnerBaseProps & {
|
|
|
34
35
|
/** When false, renders a static resting spinner (also honoured for reduced motion). Defaults to true. */
|
|
35
36
|
animating?: boolean;
|
|
36
37
|
/** Design token modes forwarded to token lookups. */
|
|
37
|
-
modes?:
|
|
38
|
+
modes?: Modes;
|
|
38
39
|
/** Container style override. */
|
|
39
40
|
style?: StyleProp<ViewStyle>;
|
|
40
41
|
/** Accessibility label announced to assistive tech. Defaults to "Loading". */
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type StyleProp, type ViewStyle } from 'react-native';
|
|
3
|
+
import type { Modes } from '../../design-tokens';
|
|
3
4
|
export type StatGroupItem = {
|
|
4
5
|
/** Stable key for the item. Falls back to the label / index. */
|
|
5
6
|
key?: React.Key;
|
|
@@ -24,7 +25,7 @@ export type StatGroupProps = {
|
|
|
24
25
|
*/
|
|
25
26
|
children?: React.ReactNode;
|
|
26
27
|
/** Design token modes for theming (e.g. `{ 'Color Mode': 'Light' }`). */
|
|
27
|
-
modes?:
|
|
28
|
+
modes?: Modes;
|
|
28
29
|
/** Override container styles. */
|
|
29
30
|
style?: StyleProp<ViewStyle>;
|
|
30
31
|
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type StyleProp, type ViewStyle, type TextStyle } from 'react-native';
|
|
2
|
+
import type { Modes } from '../../design-tokens';
|
|
2
3
|
export type StatItemLabelPosition = 'Top' | 'Bottom';
|
|
3
4
|
export type StatItemProps = {
|
|
4
5
|
/** The small descriptive label. */
|
|
@@ -14,7 +15,7 @@ export type StatItemProps = {
|
|
|
14
15
|
*/
|
|
15
16
|
labelPosition?: StatItemLabelPosition;
|
|
16
17
|
/** Design token modes for theming (e.g. `{ 'Color Mode': 'Light' }`). */
|
|
17
|
-
modes?:
|
|
18
|
+
modes?: Modes;
|
|
18
19
|
/** Override container styles. */
|
|
19
20
|
style?: StyleProp<ViewStyle>;
|
|
20
21
|
/** Override the label text styles. */
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { type ReactNode } from 'react';
|
|
2
2
|
import { type ViewStyle } from 'react-native';
|
|
3
|
+
import type { Modes } from '../../design-tokens';
|
|
3
4
|
export type StatusHeroProps = {
|
|
4
5
|
/**
|
|
5
6
|
* Custom media slot content.
|
|
@@ -20,7 +21,7 @@ export type StatusHeroProps = {
|
|
|
20
21
|
/** Currency symbol or ISO code for the default MoneyValue */
|
|
21
22
|
currency?: string;
|
|
22
23
|
/** Mode configuration for design tokens */
|
|
23
|
-
modes?:
|
|
24
|
+
modes?: Modes;
|
|
24
25
|
style?: ViewStyle;
|
|
25
26
|
};
|
|
26
27
|
/**
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type ViewStyle } from 'react-native';
|
|
3
|
+
import type { Modes } from '../../design-tokens';
|
|
3
4
|
export type StepStatus = 'number' | 'complete' | 'error' | 'warning';
|
|
4
5
|
export type StepProps = {
|
|
5
6
|
children?: React.ReactNode;
|
|
6
|
-
modes?:
|
|
7
|
+
modes?: Modes;
|
|
7
8
|
style?: ViewStyle;
|
|
8
9
|
index?: number;
|
|
9
10
|
showLine?: boolean;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { type ViewStyle } from 'react-native';
|
|
2
|
+
import type { Modes } from '../../design-tokens';
|
|
2
3
|
export type StepLabelProps = {
|
|
3
4
|
title?: string;
|
|
4
5
|
supportingText?: string;
|
|
5
6
|
metaText?: string;
|
|
6
7
|
subtitle?: boolean;
|
|
7
8
|
meta?: boolean;
|
|
8
|
-
modes?:
|
|
9
|
+
modes?: Modes;
|
|
9
10
|
style?: ViewStyle;
|
|
10
11
|
};
|
|
11
12
|
export declare function StepLabel({ title, supportingText, metaText, subtitle, meta, modes, style, }: StepLabelProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -2,12 +2,13 @@ import React from 'react';
|
|
|
2
2
|
import { type ViewStyle } from 'react-native';
|
|
3
3
|
import { Step } from './Step';
|
|
4
4
|
import { StepLabel } from './StepLabel';
|
|
5
|
+
import type { Modes } from '../../design-tokens';
|
|
5
6
|
export { Step, StepLabel };
|
|
6
7
|
export type { StepProps, StepStatus } from './Step';
|
|
7
8
|
export type { StepLabelProps } from './StepLabel';
|
|
8
9
|
export type StepperProps = {
|
|
9
10
|
children?: React.ReactNode;
|
|
10
|
-
modes?:
|
|
11
|
+
modes?: Modes;
|
|
11
12
|
style?: ViewStyle;
|
|
12
13
|
};
|
|
13
14
|
export default function Stepper({ children, modes, style, }: StepperProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { View, type StyleProp, type ViewStyle } from 'react-native';
|
|
3
|
+
import type { Modes } from '../../design-tokens';
|
|
3
4
|
/**
|
|
4
5
|
* Confidence levels supported by the indicator. Mirrors the Figma `Confidence`
|
|
5
6
|
* mode collection exactly (`High` | `Medium` | `Low` | `None`).
|
|
@@ -33,7 +34,7 @@ export type StrengthIndicatorProps = {
|
|
|
33
34
|
*/
|
|
34
35
|
confidence?: StrengthIndicatorConfidenceValue;
|
|
35
36
|
/** Design token modes for theming (e.g. `{ 'Color Mode': 'Light' }`). */
|
|
36
|
-
modes?:
|
|
37
|
+
modes?: Modes;
|
|
37
38
|
/** Override container styles. */
|
|
38
39
|
style?: StyleProp<ViewStyle>;
|
|
39
40
|
} & Omit<React.ComponentProps<typeof View>, 'style'>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type StyleProp, type TextInputProps as RNTextInputProps, type TextStyle, type ViewStyle } from 'react-native';
|
|
3
|
+
import type { Modes } from '../../design-tokens';
|
|
3
4
|
export type SuggestiveSearchOptionValue = string | number;
|
|
4
5
|
export type SuggestiveSearchOption = {
|
|
5
6
|
/** Stable, unique value used to identify the suggestion. */
|
|
@@ -98,7 +99,7 @@ export type SuggestiveSearchProps = {
|
|
|
98
99
|
/** Replaces `supportText` when `isInvalid` is true. */
|
|
99
100
|
errorMessage?: string;
|
|
100
101
|
/** Modes for design token resolution. */
|
|
101
|
-
modes?:
|
|
102
|
+
modes?: Modes;
|
|
102
103
|
/** Style overrides for the outermost wrapper. */
|
|
103
104
|
style?: StyleProp<ViewStyle>;
|
|
104
105
|
/** Style overrides for the input row. */
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type StyleProp, type ViewStyle, type TextStyle } from 'react-native';
|
|
3
3
|
import { type StrengthIndicatorConfidenceValue } from '../StrengthIndicator/StrengthIndicator';
|
|
4
|
+
import type { Modes } from '../../design-tokens';
|
|
4
5
|
export type SummaryTileProps = {
|
|
5
6
|
/** Bold heading shown at the top-left of the tile. */
|
|
6
7
|
title?: string;
|
|
@@ -35,7 +36,7 @@ export type SummaryTileProps = {
|
|
|
35
36
|
*/
|
|
36
37
|
onPress?: () => void;
|
|
37
38
|
/** Design token modes for theming (e.g. `{ 'Color Mode': 'Light' }`). */
|
|
38
|
-
modes?:
|
|
39
|
+
modes?: Modes;
|
|
39
40
|
/** Override container styles. */
|
|
40
41
|
style?: StyleProp<ViewStyle>;
|
|
41
42
|
/** Override the title text styles. */
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type StyleProp, type ViewStyle } from 'react-native';
|
|
3
3
|
import { type SupportTextStatus } from './SupportTextIcon';
|
|
4
|
+
import type { Modes } from '../../design-tokens';
|
|
4
5
|
export type SupportTextProps = {
|
|
5
6
|
/**
|
|
6
7
|
* Text to display
|
|
@@ -23,7 +24,7 @@ export type SupportTextProps = {
|
|
|
23
24
|
/**
|
|
24
25
|
* Modes object for design token resolution.
|
|
25
26
|
*/
|
|
26
|
-
modes?:
|
|
27
|
+
modes?: Modes;
|
|
27
28
|
style?: StyleProp<ViewStyle>;
|
|
28
29
|
};
|
|
29
30
|
/**
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { type ViewStyle } from 'react-native';
|
|
2
|
+
import type { Modes } from '../../design-tokens';
|
|
2
3
|
export type SupportTextStatus = 'Neutral' | 'Warning' | 'Error' | 'Success' | 'Loading';
|
|
3
4
|
export type SupportTextIconProps = {
|
|
4
5
|
status?: SupportTextStatus;
|
|
5
|
-
modes?:
|
|
6
|
+
modes?: Modes;
|
|
6
7
|
style?: ViewStyle;
|
|
7
8
|
};
|
|
8
9
|
declare function SupportTextIcon({ status, modes, style, }: SupportTextIconProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type ViewStyle } from 'react-native';
|
|
2
|
+
import type { Modes } from '../../design-tokens';
|
|
2
3
|
export type SwappableAmountProps = {
|
|
3
4
|
/** Large display value (e.g. "49g"). */
|
|
4
5
|
value?: string;
|
|
@@ -13,7 +14,7 @@ export type SwappableAmountProps = {
|
|
|
13
14
|
/** Callback when the amount/swap button is pressed. */
|
|
14
15
|
onAmountPress?: () => void;
|
|
15
16
|
/** Modes configuration for design token resolution. */
|
|
16
|
-
modes?:
|
|
17
|
+
modes?: Modes;
|
|
17
18
|
/** Container style override. */
|
|
18
19
|
style?: ViewStyle;
|
|
19
20
|
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type StyleProp, type ViewStyle, type TextStyle } from 'react-native';
|
|
2
|
+
import type { Modes } from '../../design-tokens';
|
|
2
3
|
export interface TabItemProps {
|
|
3
4
|
/** Label text to display */
|
|
4
5
|
label?: string;
|
|
@@ -7,7 +8,7 @@ export interface TabItemProps {
|
|
|
7
8
|
/** Callback when this tab item is pressed */
|
|
8
9
|
onPress?: () => void;
|
|
9
10
|
/** Design token modes for theming */
|
|
10
|
-
modes?:
|
|
11
|
+
modes?: Modes;
|
|
11
12
|
/** Override container styles */
|
|
12
13
|
style?: StyleProp<ViewStyle>;
|
|
13
14
|
/** Override label text styles */
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type StyleProp, type ViewStyle } from 'react-native';
|
|
3
3
|
import TabItem from './TabItem';
|
|
4
|
+
import type { Modes } from '../../design-tokens';
|
|
4
5
|
export interface TabsProps {
|
|
5
6
|
/**
|
|
6
7
|
* Tab item children. Each child should be a <TabItem> component.
|
|
@@ -8,7 +9,7 @@ export interface TabsProps {
|
|
|
8
9
|
*/
|
|
9
10
|
children: React.ReactNode;
|
|
10
11
|
/** Design token modes for theming */
|
|
11
|
-
modes?:
|
|
12
|
+
modes?: Modes;
|
|
12
13
|
/**
|
|
13
14
|
* When true, the tabs row scrolls horizontally (useful for many items).
|
|
14
15
|
* @default false
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type ViewStyle, type StyleProp } from 'react-native';
|
|
3
|
+
import { type AvatarProps } from '../Avatar/Avatar';
|
|
4
|
+
import type { Modes } from '../../design-tokens';
|
|
5
|
+
export type TestimonialsCardProps = {
|
|
6
|
+
/**
|
|
7
|
+
* The testimonial heading, typically the author's name.
|
|
8
|
+
*/
|
|
9
|
+
title?: string;
|
|
10
|
+
/**
|
|
11
|
+
* The testimonial body copy.
|
|
12
|
+
*/
|
|
13
|
+
body?: string;
|
|
14
|
+
/**
|
|
15
|
+
* Mode configuration passed to the token resolver. Also forwarded to the
|
|
16
|
+
* Avatar child for consistent theming.
|
|
17
|
+
*/
|
|
18
|
+
modes?: Modes;
|
|
19
|
+
/**
|
|
20
|
+
* Optional style overrides for the card container.
|
|
21
|
+
*/
|
|
22
|
+
style?: StyleProp<ViewStyle>;
|
|
23
|
+
/**
|
|
24
|
+
* Props forwarded to the Avatar component (e.g. a custom `imageSource`).
|
|
25
|
+
*/
|
|
26
|
+
avatarProps?: Partial<AvatarProps>;
|
|
27
|
+
/**
|
|
28
|
+
* Accessibility label for the card region. Falls back to a label generated
|
|
29
|
+
* from the title and body.
|
|
30
|
+
*/
|
|
31
|
+
accessibilityLabel?: string;
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* TestimonialsCard renders a compact, fixed-width card with a circular avatar,
|
|
35
|
+
* a bold title, and a body paragraph. It is typically used inside a horizontal
|
|
36
|
+
* carousel of customer testimonials.
|
|
37
|
+
*
|
|
38
|
+
* All styling values are resolved from Figma design tokens using the provided
|
|
39
|
+
* `modes`.
|
|
40
|
+
*
|
|
41
|
+
* @example
|
|
42
|
+
* ```tsx
|
|
43
|
+
* <TestimonialsCard
|
|
44
|
+
* title="Aarav S."
|
|
45
|
+
* body="I was dreading renewing my car insurance, but JioFinance made it a breeze."
|
|
46
|
+
* />
|
|
47
|
+
* ```
|
|
48
|
+
*/
|
|
49
|
+
declare function TestimonialsCard({ title, body, modes, style, avatarProps, accessibilityLabel, }: TestimonialsCardProps): import("react/jsx-runtime").JSX.Element;
|
|
50
|
+
declare const _default: React.MemoExoticComponent<typeof TestimonialsCard>;
|
|
51
|
+
export default _default;
|
|
52
|
+
//# sourceMappingURL=TestimonialsCard.d.ts.map
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type TextStyle, type StyleProp } from 'react-native';
|
|
3
|
+
import type { Modes } from '../../design-tokens';
|
|
3
4
|
export type TextProps = {
|
|
4
5
|
/**
|
|
5
6
|
* The text content to display. You may also pass content as JSX children
|
|
@@ -15,7 +16,7 @@ export type TextProps = {
|
|
|
15
16
|
/** Horizontal alignment of the text. */
|
|
16
17
|
textAlign?: 'Left' | 'Center';
|
|
17
18
|
/** Modes configuration for design token resolution. */
|
|
18
|
-
modes?:
|
|
19
|
+
modes?: Modes;
|
|
19
20
|
/** Style override for the text. */
|
|
20
21
|
style?: StyleProp<TextStyle>;
|
|
21
22
|
/** Number of lines to limit the text to. */
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type StyleProp, type ViewStyle, type TextInputProps as RNTextInputProps, type TextStyle } from 'react-native';
|
|
3
|
+
import type { Modes } from '../../design-tokens';
|
|
3
4
|
type TextInputProps = {
|
|
4
5
|
placeholder?: string;
|
|
5
6
|
value?: string;
|
|
@@ -7,7 +8,7 @@ type TextInputProps = {
|
|
|
7
8
|
leadingIconName?: string;
|
|
8
9
|
leading?: React.ReactNode;
|
|
9
10
|
trailing?: React.ReactNode;
|
|
10
|
-
modes?:
|
|
11
|
+
modes?: Modes;
|
|
11
12
|
style?: StyleProp<ViewStyle>;
|
|
12
13
|
inputStyle?: StyleProp<TextStyle>;
|
|
13
14
|
onFocus?: (e: any) => void;
|
|
@@ -43,7 +44,7 @@ type TextInputSearchProps = {
|
|
|
43
44
|
value?: string;
|
|
44
45
|
onChangeText?: (text: string) => void;
|
|
45
46
|
leading?: React.ReactNode;
|
|
46
|
-
modes?:
|
|
47
|
+
modes?: Modes;
|
|
47
48
|
style?: StyleProp<ViewStyle>;
|
|
48
49
|
inputStyle?: StyleProp<TextStyle>;
|
|
49
50
|
accessibilityLabel?: string;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { type ReactNode } from 'react';
|
|
2
2
|
import { type ViewStyle } from 'react-native';
|
|
3
|
+
import type { Modes } from '../../design-tokens';
|
|
3
4
|
export type ThreadHeroProps = {
|
|
4
5
|
/** Title text, e.g. "Subhash Rajan" */
|
|
5
6
|
title?: string;
|
|
@@ -10,7 +11,7 @@ export type ThreadHeroProps = {
|
|
|
10
11
|
/** Slot for Avatar component */
|
|
11
12
|
renderAvatar?: ReactNode;
|
|
12
13
|
/** Modes for design token resolution */
|
|
13
|
-
modes?:
|
|
14
|
+
modes?: Modes;
|
|
14
15
|
/** Optional container style */
|
|
15
16
|
style?: ViewStyle;
|
|
16
17
|
};
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { View, type StyleProp, type ViewStyle, type TextStyle } from 'react-native';
|
|
3
|
+
import type { Modes } from '../../design-tokens';
|
|
3
4
|
export type TitleProps = {
|
|
4
5
|
title?: string;
|
|
5
6
|
/** Optional subtitle displayed below the title. */
|
|
6
7
|
subtitle?: string;
|
|
7
8
|
/** Horizontal alignment of the title text. */
|
|
8
9
|
textAlign?: 'Left' | 'Center';
|
|
9
|
-
modes?:
|
|
10
|
+
modes?: Modes;
|
|
10
11
|
style?: StyleProp<ViewStyle>;
|
|
11
12
|
textStyle?: StyleProp<TextStyle>;
|
|
12
13
|
/** Optional style overrides for the subtitle text. */
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { type StyleProp, type ViewStyle } from 'react-native';
|
|
2
2
|
import { type ToastPlacement } from './useToast';
|
|
3
|
+
import type { Modes } from '../../design-tokens';
|
|
3
4
|
export interface ToastProps {
|
|
4
5
|
id: string;
|
|
5
6
|
title: string;
|
|
6
7
|
timeout?: number | undefined;
|
|
7
8
|
onClose?: (() => void) | undefined;
|
|
8
|
-
modes?:
|
|
9
|
+
modes?: Modes | undefined;
|
|
9
10
|
placement?: ToastPlacement | undefined;
|
|
10
11
|
style?: StyleProp<ViewStyle> | undefined;
|
|
11
12
|
}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type ToastPlacement } from './useToast';
|
|
3
|
+
import type { Modes } from '../../design-tokens';
|
|
3
4
|
export interface ToastProviderProps {
|
|
4
5
|
children: React.ReactNode;
|
|
5
6
|
maxVisibleToasts?: number;
|
|
6
7
|
placement?: ToastPlacement;
|
|
7
|
-
modes?:
|
|
8
|
+
modes?: Modes;
|
|
8
9
|
}
|
|
9
10
|
declare function ToastProvider({ children, maxVisibleToasts, placement, modes, }: ToastProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
10
11
|
export default ToastProvider;
|
|
@@ -1,16 +1,17 @@
|
|
|
1
|
+
import type { Modes } from '../../design-tokens';
|
|
1
2
|
export type ToastPlacement = 'top' | 'bottom';
|
|
2
3
|
export interface ToastOptions {
|
|
3
4
|
title: string;
|
|
4
5
|
timeout?: number;
|
|
5
6
|
onClose?: () => void;
|
|
6
|
-
modes?:
|
|
7
|
+
modes?: Modes;
|
|
7
8
|
}
|
|
8
9
|
export interface ToastEntry {
|
|
9
10
|
id: string;
|
|
10
11
|
title: string;
|
|
11
12
|
timeout: number;
|
|
12
13
|
onClose?: (() => void) | undefined;
|
|
13
|
-
modes?:
|
|
14
|
+
modes?: Modes | undefined;
|
|
14
15
|
}
|
|
15
16
|
export declare function addToast(options: ToastOptions): string;
|
|
16
17
|
export declare function closeToast(id: string): void;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type StyleProp, type ViewStyle } from 'react-native';
|
|
2
|
+
import type { Modes } from '../../design-tokens';
|
|
2
3
|
export interface ToggleProps {
|
|
3
4
|
/** Whether the toggle is on (controlled) */
|
|
4
5
|
value?: boolean;
|
|
@@ -9,7 +10,7 @@ export interface ToggleProps {
|
|
|
9
10
|
/** Whether the toggle is disabled */
|
|
10
11
|
disabled?: boolean;
|
|
11
12
|
/** Design token modes for theming */
|
|
12
|
-
modes?:
|
|
13
|
+
modes?: Modes;
|
|
13
14
|
/** Override container styles */
|
|
14
15
|
style?: StyleProp<ViewStyle>;
|
|
15
16
|
/** Accessibility label for screen readers */
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import React, { ReactNode } from 'react';
|
|
2
2
|
import { Pressable, ViewStyle } from 'react-native';
|
|
3
|
+
import type { Modes } from '../../design-tokens';
|
|
3
4
|
export type Placement = 'top' | 'top-start' | 'top-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'left' | 'left-start' | 'left-end' | 'right' | 'right-start' | 'right-end';
|
|
4
5
|
export type TooltipProps = {
|
|
5
6
|
children: ReactNode;
|
|
6
|
-
modes?:
|
|
7
|
+
modes?: Modes;
|
|
7
8
|
/** Initial visibility state (controlled) */
|
|
8
9
|
open?: boolean;
|
|
9
10
|
/** Callback when visibility changes */
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type ViewStyle, type PressableProps } from 'react-native';
|
|
3
3
|
import { type WebAccessibilityProps } from '../../utils/web-platform-utils';
|
|
4
|
+
import type { Modes } from '../../design-tokens';
|
|
4
5
|
export type TransactionBubbleProps = {
|
|
5
6
|
description?: string;
|
|
6
7
|
value?: string | number;
|
|
@@ -10,7 +11,7 @@ export type TransactionBubbleProps = {
|
|
|
10
11
|
/** Slot for the status area. When provided, replaces the default TransactionStatus + NavArrow. */
|
|
11
12
|
statusSlot?: React.ReactNode;
|
|
12
13
|
children?: React.ReactNode;
|
|
13
|
-
modes?:
|
|
14
|
+
modes?: Modes;
|
|
14
15
|
onPress?: () => void;
|
|
15
16
|
style?: ViewStyle;
|
|
16
17
|
accessibilityLabel?: string;
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { View, type StyleProp, type ViewStyle, type TextStyle } from 'react-native';
|
|
3
|
+
import type { Modes } from '../../design-tokens';
|
|
3
4
|
export type TransactionDetailsItemProps = {
|
|
4
5
|
/** The label text displayed above the value (e.g., "UPI transaction ID") */
|
|
5
6
|
label?: string;
|
|
6
7
|
/** The value text displayed below the label (e.g., "101674916166") */
|
|
7
8
|
value?: string;
|
|
8
9
|
/** Modes object passed to `getVariableByName` for design token resolution */
|
|
9
|
-
modes?:
|
|
10
|
+
modes?: Modes;
|
|
10
11
|
/** Optional container style overrides */
|
|
11
12
|
style?: StyleProp<ViewStyle>;
|
|
12
13
|
/** Optional label text style overrides */
|
|
@@ -20,7 +21,7 @@ export type TransactionDetailsProps = {
|
|
|
20
21
|
/** Slot for TransactionDetails.Item children */
|
|
21
22
|
children?: React.ReactNode;
|
|
22
23
|
/** Modes object passed to `getVariableByName` for design token resolution */
|
|
23
|
-
modes?:
|
|
24
|
+
modes?: Modes;
|
|
24
25
|
/** Optional container style overrides */
|
|
25
26
|
style?: StyleProp<ViewStyle>;
|
|
26
27
|
/** Accessibility label for screen readers */
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { type ViewStyle } from 'react-native';
|
|
2
|
+
import type { Modes } from '../../design-tokens';
|
|
2
3
|
export type TransactionStatusProps = {
|
|
3
4
|
/** Status text, e.g. "Expired" */
|
|
4
5
|
status?: string;
|
|
5
6
|
/** Date text, e.g. "20 Mar 2025" */
|
|
6
7
|
date?: string;
|
|
7
8
|
/** Modes for design token resolution */
|
|
8
|
-
modes?:
|
|
9
|
+
modes?: Modes;
|
|
9
10
|
/** Optional container style */
|
|
10
11
|
style?: ViewStyle;
|
|
11
12
|
};
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { View, type ImageSourcePropType } from 'react-native';
|
|
3
3
|
import { type UnifiedSource } from '../../utils/MediaSource';
|
|
4
|
+
import type { Modes } from '../../design-tokens';
|
|
4
5
|
type UpiHandleProps = {
|
|
5
6
|
label?: string;
|
|
6
|
-
modes?:
|
|
7
|
+
modes?: Modes;
|
|
7
8
|
showIcon?: boolean;
|
|
8
9
|
iconName?: string;
|
|
9
10
|
/**
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ViewStyle, ViewProps } from 'react-native';
|
|
3
|
+
import type { Modes } from '../../design-tokens';
|
|
3
4
|
export interface VStackProps extends ViewProps {
|
|
4
5
|
/**
|
|
5
6
|
* The content to display inside the stack.
|
|
@@ -31,7 +32,7 @@ export interface VStackProps extends ViewProps {
|
|
|
31
32
|
/**
|
|
32
33
|
* Modes object to override default variable values.
|
|
33
34
|
*/
|
|
34
|
-
modes?:
|
|
35
|
+
modes?: Modes;
|
|
35
36
|
}
|
|
36
37
|
/**
|
|
37
38
|
* VStack component for vertical layout using design token spacing.
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
type Collections = readonly string[];
|
|
2
|
+
/**
|
|
3
|
+
* Build `argTypes` entries — one `select` per multi-mode collection, grouped
|
|
4
|
+
* under a "Modes" category. Spread the result into your story `meta.argTypes`.
|
|
5
|
+
*/
|
|
6
|
+
export declare function modeArgTypes(componentOrCollections: string | Collections, extra?: Collections): Record<string, unknown>;
|
|
7
|
+
/**
|
|
8
|
+
* A decorator that merges the picked collection modes into `args.modes` and
|
|
9
|
+
* strips the synthetic control args before they reach the component.
|
|
10
|
+
*/
|
|
11
|
+
export declare function modeDecorator(componentOrCollections: string | Collections, extra?: Collections): (Story: any, context: any) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
/**
|
|
13
|
+
* Convenience: returns `{ argTypes, decorators }` to spread directly into a
|
|
14
|
+
* story `meta`.
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* const meta = {
|
|
18
|
+
* title: 'Components/Button',
|
|
19
|
+
* component: Button,
|
|
20
|
+
* ...withModeControls('Button'),
|
|
21
|
+
* }
|
|
22
|
+
*/
|
|
23
|
+
export declare function withModeControls(componentOrCollections: string | Collections, extra?: Collections): {
|
|
24
|
+
argTypes: Record<string, unknown>;
|
|
25
|
+
decorators: unknown[];
|
|
26
|
+
};
|
|
27
|
+
export {};
|
|
28
|
+
//# sourceMappingURL=modeControls.d.ts.map
|
|
@@ -63,6 +63,7 @@ export { default as NoteInput, type NoteInputProps } from './NoteInput/NoteInput
|
|
|
63
63
|
export { default as Nudge, type NudgeProps } from './Nudge/Nudge';
|
|
64
64
|
export { default as NavArrow } from './NavArrow/NavArrow';
|
|
65
65
|
export { default as Numpad, type NumpadProps, type NumpadKeyValue } from './Numpad/Numpad';
|
|
66
|
+
export { default as Overlay, type OverlayProps } from './Overlay/Overlay';
|
|
66
67
|
export { default as Title, type TitleProps } from './Title/Title';
|
|
67
68
|
export { default as Screen, type ScreenProps } from './Screen/Screen';
|
|
68
69
|
export { default as Section } from './Section/Section';
|
|
@@ -130,6 +131,7 @@ export { default as StatItem, type StatItemProps, type StatItemLabelPosition } f
|
|
|
130
131
|
export { default as StatGroup, type StatGroupProps, type StatGroupItem } from './StatGroup/StatGroup';
|
|
131
132
|
export { default as StrengthIndicator, type StrengthIndicatorProps, type StrengthIndicatorConfidence, type StrengthIndicatorConfidenceValue } from './StrengthIndicator/StrengthIndicator';
|
|
132
133
|
export { default as SummaryTile, type SummaryTileProps } from './SummaryTile/SummaryTile';
|
|
134
|
+
export { default as TestimonialsCard, type TestimonialsCardProps } from './TestimonialsCard/TestimonialsCard';
|
|
133
135
|
export { default as Text, type TextProps } from './Text/Text';
|
|
134
136
|
export { default as SegmentedControl, type SegmentedControlProps, type SegmentedControlItem } from './SegmentedControl/SegmentedControl';
|
|
135
137
|
export { default as Toggle, type ToggleProps } from './Toggle/Toggle';
|