jfs-components 0.1.2 → 0.1.12
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 +45 -0
- package/lib/commonjs/components/Accordion/Accordion.js +2 -1
- package/lib/commonjs/components/AccordionCheckbox/AccordionCheckbox.js +4 -3
- package/lib/commonjs/components/AccountCard/AccountCard.js +4 -3
- package/lib/commonjs/components/AllocationComparisonChart/AllocationComparisonChart.js +9 -6
- package/lib/commonjs/components/AmountInput/AmountInput.js +8 -5
- package/lib/commonjs/components/AreaLineChart/AreaLineChart.js +11 -7
- package/lib/commonjs/components/Badge/Badge.js +47 -8
- package/lib/commonjs/components/BenefitCard/BenefitCard.js +231 -0
- package/lib/commonjs/components/BrandChip/BrandChip.js +3 -3
- package/lib/commonjs/components/Button/Button.js +2 -1
- package/lib/commonjs/components/CardAdvisory/CardAdvisory.js +2 -1
- package/lib/commonjs/components/CardBankAccount/CardBankAccount.js +3 -2
- package/lib/commonjs/components/CardCTA/CardCTA.js +197 -27
- package/lib/commonjs/components/CardInsight/CardInsight.js +5 -1
- package/lib/commonjs/components/CcCard/CcCard.js +470 -0
- package/lib/commonjs/components/Checkbox/Checkbox.js +4 -3
- package/lib/commonjs/components/CheckboxItem/CheckboxItem.js +4 -3
- package/lib/commonjs/components/CircularProgressBar/CircularProgressBar.js +7 -3
- package/lib/commonjs/components/CircularProgressBarDoted/CircularProgressBarDoted.js +3 -2
- package/lib/commonjs/components/CircularRating/CircularRating.js +2 -1
- package/lib/commonjs/components/ClusterBubble/ClusterBubble.js +3 -2
- package/lib/commonjs/components/CompareTable/CompareTable.js +401 -0
- package/lib/commonjs/components/ComparisonBar/ComparisonBar.js +266 -0
- package/lib/commonjs/components/CoverageBarComparison/CoverageBarComparison.js +3 -2
- package/lib/commonjs/components/DonutChart/DonutChart.js +4 -3
- package/lib/commonjs/components/Dropdown/Dropdown.js +3 -2
- package/lib/commonjs/components/DropdownInput/DropdownInput.js +38 -5
- package/lib/commonjs/components/ExpandableCheckbox/ExpandableCheckbox.js +2 -1
- package/lib/commonjs/components/FormField/FormField.js +45 -4
- package/lib/commonjs/components/Gauge/Gauge.js +1 -1
- package/lib/commonjs/components/HoldingsCard/HoldingsCard.js +3 -2
- package/lib/commonjs/components/InputSearch/InputSearch.js +6 -4
- package/lib/commonjs/components/InstitutionBadge/InstitutionBadge.js +2 -1
- package/lib/commonjs/components/ListGroup/ListGroup.js +2 -1
- package/lib/commonjs/components/ListItem/ListItem.js +3 -2
- package/lib/commonjs/components/MediaCard/MediaCard.js +4 -2
- package/lib/commonjs/components/MetricLegendItem/MetricLegendItem.js +3 -2
- package/lib/commonjs/components/MonthlyStatusGrid/MonthlyStatusGrid.js +6 -3
- package/lib/commonjs/components/NoteInput/NoteInput.js +6 -5
- package/lib/commonjs/components/PdpCcCard/PdpCcCard.js +273 -0
- package/lib/commonjs/components/PoweredByLabel/PoweredByLabel.js +3 -2
- package/lib/commonjs/components/ProductMerchandisingCard/ProductMerchandisingCard.js +427 -0
- package/lib/commonjs/components/ProductOverview/ProductOverview.js +4 -3
- package/lib/commonjs/components/ProgressBadge/ProgressBadge.js +2 -2
- package/lib/commonjs/components/ProjectionMarker/ProjectionMarker.js +162 -0
- package/lib/commonjs/components/Radio/Radio.js +5 -5
- package/lib/commonjs/components/Section/Section.js +3 -2
- package/lib/commonjs/components/Slider/Slider.js +474 -0
- package/lib/commonjs/components/Stack/Stack.js +86 -0
- package/lib/commonjs/components/SuggestiveSearch/SuggestiveSearch.js +10 -1
- package/lib/commonjs/components/SummaryTile/SummaryTile.js +3 -2
- package/lib/commonjs/components/Table/Table.js +324 -0
- package/lib/commonjs/components/Text/Text.js +2 -1
- package/lib/commonjs/components/TextInput/TextInput.js +22 -9
- package/lib/commonjs/components/TextSegment/TextSegment.js +119 -0
- package/lib/commonjs/components/ThreadHero/ThreadHero.js +4 -5
- package/lib/commonjs/components/Title/Title.js +2 -1
- package/lib/commonjs/components/Toast/Toast.js +3 -2
- package/lib/commonjs/components/TransactionBubble/TransactionBubble.js +2 -1
- package/lib/commonjs/components/TransactionStatus/TransactionStatus.js +3 -2
- package/lib/commonjs/components/UpiHandle/UpiHandle.js +2 -2
- package/lib/commonjs/components/index.js +107 -0
- package/lib/commonjs/design-tokens/Coin Variables-variables-full.json +1 -1
- package/lib/commonjs/design-tokens/figma-modes.generated.js +39 -9
- package/lib/commonjs/icons/registry.js +1 -1
- package/lib/commonjs/utils/GlassFill/GlassFill.js +271 -0
- package/lib/commonjs/utils/GlassFill/GlassFill.web.js +120 -0
- package/lib/commonjs/utils/react-utils.js +78 -0
- package/lib/commonjs/utils/web-platform-utils.js +59 -0
- package/lib/module/components/Accordion/Accordion.js +3 -2
- package/lib/module/components/AccordionCheckbox/AccordionCheckbox.js +5 -4
- package/lib/module/components/AccountCard/AccountCard.js +5 -4
- package/lib/module/components/AllocationComparisonChart/AllocationComparisonChart.js +10 -7
- package/lib/module/components/AmountInput/AmountInput.js +6 -4
- package/lib/module/components/AreaLineChart/AreaLineChart.js +12 -8
- package/lib/module/components/Badge/Badge.js +49 -10
- package/lib/module/components/BenefitCard/BenefitCard.js +225 -0
- package/lib/module/components/BrandChip/BrandChip.js +4 -4
- package/lib/module/components/Button/Button.js +3 -2
- package/lib/module/components/CardAdvisory/CardAdvisory.js +3 -2
- package/lib/module/components/CardBankAccount/CardBankAccount.js +4 -3
- package/lib/module/components/CardCTA/CardCTA.js +198 -28
- package/lib/module/components/CardInsight/CardInsight.js +5 -1
- package/lib/module/components/CcCard/CcCard.js +464 -0
- package/lib/module/components/Checkbox/Checkbox.js +5 -4
- package/lib/module/components/CheckboxItem/CheckboxItem.js +5 -4
- package/lib/module/components/CircularProgressBar/CircularProgressBar.js +8 -4
- package/lib/module/components/CircularProgressBarDoted/CircularProgressBarDoted.js +4 -3
- package/lib/module/components/CircularRating/CircularRating.js +3 -2
- package/lib/module/components/ClusterBubble/ClusterBubble.js +4 -3
- package/lib/module/components/CompareTable/CompareTable.js +396 -0
- package/lib/module/components/ComparisonBar/ComparisonBar.js +260 -0
- package/lib/module/components/CoverageBarComparison/CoverageBarComparison.js +4 -3
- package/lib/module/components/DonutChart/DonutChart.js +5 -4
- package/lib/module/components/Dropdown/Dropdown.js +4 -3
- package/lib/module/components/DropdownInput/DropdownInput.js +40 -7
- package/lib/module/components/ExpandableCheckbox/ExpandableCheckbox.js +2 -1
- package/lib/module/components/FormField/FormField.js +48 -7
- package/lib/module/components/Gauge/Gauge.js +1 -1
- package/lib/module/components/HoldingsCard/HoldingsCard.js +4 -3
- package/lib/module/components/InputSearch/InputSearch.js +6 -4
- package/lib/module/components/InstitutionBadge/InstitutionBadge.js +3 -2
- package/lib/module/components/ListGroup/ListGroup.js +3 -2
- package/lib/module/components/ListItem/ListItem.js +4 -3
- package/lib/module/components/MediaCard/MediaCard.js +4 -2
- package/lib/module/components/MetricLegendItem/MetricLegendItem.js +4 -3
- package/lib/module/components/MonthlyStatusGrid/MonthlyStatusGrid.js +7 -4
- package/lib/module/components/NoteInput/NoteInput.js +7 -6
- package/lib/module/components/PdpCcCard/PdpCcCard.js +267 -0
- package/lib/module/components/PoweredByLabel/PoweredByLabel.js +4 -3
- package/lib/module/components/ProductMerchandisingCard/ProductMerchandisingCard.js +421 -0
- package/lib/module/components/ProductOverview/ProductOverview.js +5 -4
- package/lib/module/components/ProgressBadge/ProgressBadge.js +3 -3
- package/lib/module/components/ProjectionMarker/ProjectionMarker.js +157 -0
- package/lib/module/components/Radio/Radio.js +5 -4
- package/lib/module/components/Section/Section.js +4 -3
- package/lib/module/components/Slider/Slider.js +469 -0
- package/lib/module/components/Stack/Stack.js +81 -0
- package/lib/module/components/SuggestiveSearch/SuggestiveSearch.js +10 -1
- package/lib/module/components/SummaryTile/SummaryTile.js +4 -3
- package/lib/module/components/Table/Table.js +315 -0
- package/lib/module/components/Text/Text.js +3 -2
- package/lib/module/components/TextInput/TextInput.js +24 -11
- package/lib/module/components/TextSegment/TextSegment.js +114 -0
- package/lib/module/components/ThreadHero/ThreadHero.js +5 -6
- package/lib/module/components/Title/Title.js +3 -2
- package/lib/module/components/Toast/Toast.js +4 -3
- package/lib/module/components/TransactionBubble/TransactionBubble.js +3 -2
- package/lib/module/components/TransactionStatus/TransactionStatus.js +4 -3
- package/lib/module/components/UpiHandle/UpiHandle.js +3 -3
- package/lib/module/components/index.js +11 -0
- package/lib/module/design-tokens/Coin Variables-variables-full.json +1 -1
- package/lib/module/design-tokens/figma-modes.generated.js +39 -9
- package/lib/module/icons/registry.js +1 -1
- package/lib/module/utils/GlassFill/GlassFill.js +265 -0
- package/lib/module/utils/GlassFill/GlassFill.web.js +115 -0
- package/lib/module/utils/react-utils.js +75 -0
- package/lib/module/utils/web-platform-utils.js +58 -0
- package/lib/typescript/src/components/Accordion/Accordion.d.ts +7 -1
- package/lib/typescript/src/components/AccordionCheckbox/AccordionCheckbox.d.ts +7 -1
- package/lib/typescript/src/components/AccountCard/AccountCard.d.ts +7 -1
- package/lib/typescript/src/components/AllocationComparisonChart/AllocationComparisonChart.d.ts +7 -1
- package/lib/typescript/src/components/AmountInput/AmountInput.d.ts +3 -2
- package/lib/typescript/src/components/AreaLineChart/AreaLineChart.d.ts +8 -1
- package/lib/typescript/src/components/Badge/Badge.d.ts +32 -2
- package/lib/typescript/src/components/BenefitCard/BenefitCard.d.ts +93 -0
- package/lib/typescript/src/components/BrandChip/BrandChip.d.ts +7 -1
- package/lib/typescript/src/components/Button/Button.d.ts +7 -1
- package/lib/typescript/src/components/CardAdvisory/CardAdvisory.d.ts +7 -1
- package/lib/typescript/src/components/CardBankAccount/CardBankAccount.d.ts +7 -1
- package/lib/typescript/src/components/CardCTA/CardCTA.d.ts +27 -5
- package/lib/typescript/src/components/CcCard/CcCard.d.ts +137 -0
- package/lib/typescript/src/components/Checkbox/Checkbox.d.ts +3 -2
- package/lib/typescript/src/components/CheckboxItem/CheckboxItem.d.ts +2 -2
- package/lib/typescript/src/components/CircularProgressBar/CircularProgressBar.d.ts +7 -1
- package/lib/typescript/src/components/CircularProgressBarDoted/CircularProgressBarDoted.d.ts +7 -1
- package/lib/typescript/src/components/CircularRating/CircularRating.d.ts +7 -1
- package/lib/typescript/src/components/ClusterBubble/ClusterBubble.d.ts +7 -1
- package/lib/typescript/src/components/CompareTable/CompareTable.d.ts +94 -0
- package/lib/typescript/src/components/ComparisonBar/ComparisonBar.d.ts +118 -0
- package/lib/typescript/src/components/CoverageBarComparison/CoverageBarComparison.d.ts +7 -1
- package/lib/typescript/src/components/DonutChart/DonutChart.d.ts +7 -1
- package/lib/typescript/src/components/Dropdown/Dropdown.d.ts +7 -1
- package/lib/typescript/src/components/DropdownInput/DropdownInput.d.ts +26 -1
- package/lib/typescript/src/components/ExpandableCheckbox/ExpandableCheckbox.d.ts +7 -1
- package/lib/typescript/src/components/FormField/FormField.d.ts +2 -2
- package/lib/typescript/src/components/HoldingsCard/HoldingsCard.d.ts +7 -1
- package/lib/typescript/src/components/InputSearch/InputSearch.d.ts +23 -2
- package/lib/typescript/src/components/InstitutionBadge/InstitutionBadge.d.ts +7 -1
- package/lib/typescript/src/components/ListGroup/ListGroup.d.ts +7 -1
- package/lib/typescript/src/components/ListItem/ListItem.d.ts +7 -1
- package/lib/typescript/src/components/MetricLegendItem/MetricLegendItem.d.ts +7 -1
- package/lib/typescript/src/components/MonthlyStatusGrid/MonthlyStatusGrid.d.ts +14 -2
- package/lib/typescript/src/components/NoteInput/NoteInput.d.ts +19 -2
- package/lib/typescript/src/components/PdpCcCard/PdpCcCard.d.ts +84 -0
- package/lib/typescript/src/components/PoweredByLabel/PoweredByLabel.d.ts +7 -1
- package/lib/typescript/src/components/ProductMerchandisingCard/ProductMerchandisingCard.d.ts +87 -0
- package/lib/typescript/src/components/ProductOverview/ProductOverview.d.ts +7 -1
- package/lib/typescript/src/components/ProgressBadge/ProgressBadge.d.ts +7 -1
- package/lib/typescript/src/components/ProjectionMarker/ProjectionMarker.d.ts +88 -0
- package/lib/typescript/src/components/Radio/Radio.d.ts +3 -2
- package/lib/typescript/src/components/RadioButton/RadioButton.d.ts +2 -2
- package/lib/typescript/src/components/Section/Section.d.ts +7 -1
- package/lib/typescript/src/components/Slider/Slider.d.ts +105 -0
- package/lib/typescript/src/components/Stack/Stack.d.ts +81 -0
- package/lib/typescript/src/components/SummaryTile/SummaryTile.d.ts +7 -1
- package/lib/typescript/src/components/Table/Table.d.ts +139 -0
- package/lib/typescript/src/components/Text/Text.d.ts +7 -1
- package/lib/typescript/src/components/TextInput/TextInput.d.ts +9 -29
- package/lib/typescript/src/components/TextSegment/TextSegment.d.ts +106 -0
- package/lib/typescript/src/components/ThreadHero/ThreadHero.d.ts +7 -1
- package/lib/typescript/src/components/Title/Title.d.ts +7 -1
- package/lib/typescript/src/components/Toast/Toast.d.ts +7 -1
- package/lib/typescript/src/components/TransactionBubble/TransactionBubble.d.ts +7 -1
- package/lib/typescript/src/components/TransactionStatus/TransactionStatus.d.ts +7 -1
- package/lib/typescript/src/components/UpiHandle/UpiHandle.d.ts +7 -1
- package/lib/typescript/src/components/index.d.ts +14 -3
- package/lib/typescript/src/design-tokens/figma-modes.generated.d.ts +22 -2
- package/lib/typescript/src/icons/registry.d.ts +1 -1
- package/lib/typescript/src/utils/GlassFill/GlassFill.d.ts +84 -0
- package/lib/typescript/src/utils/GlassFill/GlassFill.web.d.ts +43 -0
- package/lib/typescript/src/utils/react-utils.d.ts +47 -0
- package/lib/typescript/src/utils/web-platform-utils.d.ts +36 -0
- package/package.json +2 -1
- package/src/components/Accordion/Accordion.tsx +9 -2
- package/src/components/AccordionCheckbox/AccordionCheckbox.tsx +10 -3
- package/src/components/AccountCard/AccountCard.tsx +10 -3
- package/src/components/AllocationComparisonChart/AllocationComparisonChart.tsx +14 -4
- package/src/components/AmountInput/AmountInput.tsx +7 -5
- package/src/components/AreaLineChart/AreaLineChart.tsx +15 -5
- package/src/components/Badge/Badge.tsx +78 -8
- package/src/components/BenefitCard/BenefitCard.tsx +309 -0
- package/src/components/BrandChip/BrandChip.tsx +9 -3
- package/src/components/Button/Button.tsx +9 -2
- package/src/components/CardAdvisory/CardAdvisory.tsx +9 -2
- package/src/components/CardBankAccount/CardBankAccount.tsx +9 -2
- package/src/components/CardCTA/CardCTA.tsx +214 -41
- package/src/components/CardInsight/CardInsight.tsx +7 -1
- package/src/components/CcCard/CcCard.tsx +598 -0
- package/src/components/Checkbox/Checkbox.tsx +5 -4
- package/src/components/CheckboxItem/CheckboxItem.tsx +5 -4
- package/src/components/CircularProgressBar/CircularProgressBar.tsx +14 -4
- package/src/components/CircularProgressBarDoted/CircularProgressBarDoted.tsx +10 -3
- package/src/components/CircularRating/CircularRating.tsx +9 -2
- package/src/components/ClusterBubble/ClusterBubble.tsx +9 -2
- package/src/components/CompareTable/CompareTable.tsx +525 -0
- package/src/components/ComparisonBar/ComparisonBar.tsx +356 -0
- package/src/components/CoverageBarComparison/CoverageBarComparison.tsx +9 -2
- package/src/components/DonutChart/DonutChart.tsx +10 -3
- package/src/components/Dropdown/Dropdown.tsx +9 -2
- package/src/components/DropdownInput/DropdownInput.tsx +64 -5
- package/src/components/ExpandableCheckbox/ExpandableCheckbox.tsx +8 -1
- package/src/components/FormField/FormField.tsx +52 -6
- package/src/components/Gauge/Gauge.tsx +1 -1
- package/src/components/HoldingsCard/HoldingsCard.tsx +9 -2
- package/src/components/InputSearch/InputSearch.tsx +8 -5
- package/src/components/InstitutionBadge/InstitutionBadge.tsx +9 -2
- package/src/components/ListGroup/ListGroup.tsx +9 -2
- package/src/components/ListItem/ListItem.tsx +10 -3
- package/src/components/MediaCard/MediaCard.tsx +2 -2
- package/src/components/MetricLegendItem/MetricLegendItem.tsx +9 -2
- package/src/components/MonthlyStatusGrid/MonthlyStatusGrid.tsx +17 -2
- package/src/components/NoteInput/NoteInput.tsx +8 -6
- package/src/components/PdpCcCard/PdpCcCard.tsx +356 -0
- package/src/components/PoweredByLabel/PoweredByLabel.tsx +9 -2
- package/src/components/ProductMerchandisingCard/ProductMerchandisingCard.tsx +490 -0
- package/src/components/ProductOverview/ProductOverview.tsx +10 -3
- package/src/components/ProgressBadge/ProgressBadge.tsx +9 -3
- package/src/components/ProjectionMarker/ProjectionMarker.tsx +284 -0
- package/src/components/Radio/Radio.tsx +5 -4
- package/src/components/Section/Section.tsx +10 -3
- package/src/components/Slider/Slider.tsx +635 -0
- package/src/components/Stack/Stack.tsx +131 -0
- package/src/components/SuggestiveSearch/SuggestiveSearch.tsx +10 -1
- package/src/components/SummaryTile/SummaryTile.tsx +9 -2
- package/src/components/Table/Table.tsx +449 -0
- package/src/components/Text/Text.tsx +9 -2
- package/src/components/TextInput/TextInput.tsx +22 -12
- package/src/components/TextSegment/TextSegment.tsx +173 -0
- package/src/components/ThreadHero/ThreadHero.tsx +10 -3
- package/src/components/Title/Title.tsx +9 -2
- package/src/components/Toast/Toast.tsx +9 -2
- package/src/components/TransactionBubble/TransactionBubble.tsx +9 -2
- package/src/components/TransactionStatus/TransactionStatus.tsx +9 -2
- package/src/components/UpiHandle/UpiHandle.tsx +9 -3
- package/src/components/index.ts +33 -3
- package/src/design-tokens/Coin Variables-variables-full.json +1 -1
- package/src/design-tokens/figma-modes.generated.ts +39 -9
- package/src/icons/registry.ts +1 -1
- package/src/utils/GlassFill/GlassFill.tsx +305 -0
- package/src/utils/GlassFill/GlassFill.web.tsx +148 -0
- package/src/utils/react-utils.ts +84 -0
- package/src/utils/web-platform-utils.ts +68 -0
- package/lib/commonjs/components/MediaCard/GlassFill.js +0 -62
- package/lib/commonjs/components/MediaCard/GlassFill.web.js +0 -48
- package/lib/module/components/MediaCard/GlassFill.js +0 -57
- package/lib/module/components/MediaCard/GlassFill.web.js +0 -43
- package/lib/typescript/scripts/extract-component-tokens.d.ts +0 -9
- package/lib/typescript/scripts/generate-component-docs.d.ts +0 -9
- package/lib/typescript/scripts/generate-icon-registry.d.ts +0 -3
- package/lib/typescript/scripts/generate-mode-types.d.ts +0 -2
- package/lib/typescript/scripts/retype-modes.d.cts +0 -2
- package/lib/typescript/src/components/MediaCard/GlassFill.d.ts +0 -47
- package/lib/typescript/src/components/MediaCard/GlassFill.web.d.ts +0 -20
- package/src/components/MediaCard/GlassFill.tsx +0 -89
- package/src/components/MediaCard/GlassFill.web.tsx +0 -53
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { type StyleProp, type ViewStyle, type TextInputProps as RNTextInputProps, type TextStyle } from 'react-native';
|
|
2
|
+
import { TextInput as RNTextInput, type StyleProp, type ViewStyle, type TextInputProps as RNTextInputProps, type TextStyle } from 'react-native';
|
|
3
3
|
import type { Modes } from '../../design-tokens';
|
|
4
|
-
|
|
4
|
+
declare const TextInputBase: React.ForwardRefExoticComponent<{
|
|
5
5
|
placeholder?: string;
|
|
6
6
|
value?: string;
|
|
7
7
|
onChangeText?: (text: string) => void;
|
|
@@ -15,31 +15,8 @@ type TextInputProps = {
|
|
|
15
15
|
onBlur?: (e: any) => void;
|
|
16
16
|
accessibilityLabel?: string;
|
|
17
17
|
accessibilityHint?: string;
|
|
18
|
-
} & Omit<RNTextInputProps,
|
|
19
|
-
declare
|
|
20
|
-
declare namespace TextInput {
|
|
21
|
-
var Search: typeof TextInputSearch;
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* TextInput.Search component that mirrors the Figma "textInput.search" component.
|
|
25
|
-
*
|
|
26
|
-
* This is a convenience variant that pre-configures the TextInput with:
|
|
27
|
-
* - Default search icon in the leading slot
|
|
28
|
-
* - No trailing slot
|
|
29
|
-
* - Default placeholder text "Search"
|
|
30
|
-
*
|
|
31
|
-
* @component
|
|
32
|
-
* @param {Object} props
|
|
33
|
-
* @param {string} [props.placeholder='Search'] - Placeholder text (defaults to "Search")
|
|
34
|
-
* @param {string} [props.value=''] - Current value of the input
|
|
35
|
-
* @param {Function} [props.onChangeText] - Callback function called when text changes
|
|
36
|
-
* @param {React.ReactNode} [props.leading] - Optional leading slot (defaults to search icon)
|
|
37
|
-
* @param {Object} [props.modes={}] - Modes object passed to `getVariableByName` for all design tokens
|
|
38
|
-
* @param {Object} [props.style] - Optional container style overrides
|
|
39
|
-
* @param {Object} [props.inputStyle] - Optional text input style overrides
|
|
40
|
-
* @param {Object} [props.rest] - Additional props passed to the underlying TextInput
|
|
41
|
-
*/
|
|
42
|
-
type TextInputSearchProps = {
|
|
18
|
+
} & Omit<RNTextInputProps, "style" | "value" | "onFocus" | "onBlur" | "placeholder" | "onChangeText"> & React.RefAttributes<RNTextInput>>;
|
|
19
|
+
declare const TextInputSearch: React.ForwardRefExoticComponent<{
|
|
43
20
|
placeholder?: string;
|
|
44
21
|
value?: string;
|
|
45
22
|
onChangeText?: (text: string) => void;
|
|
@@ -51,7 +28,10 @@ type TextInputSearchProps = {
|
|
|
51
28
|
accessibilityHint?: string;
|
|
52
29
|
onFocus?: (e: any) => void;
|
|
53
30
|
onBlur?: (e: any) => void;
|
|
54
|
-
} & Omit<RNTextInputProps,
|
|
55
|
-
|
|
31
|
+
} & Omit<RNTextInputProps, "style" | "value" | "onFocus" | "onBlur" | "placeholder" | "onChangeText"> & React.RefAttributes<RNTextInput>>;
|
|
32
|
+
type TextInputComponent = typeof TextInputBase & {
|
|
33
|
+
Search: typeof TextInputSearch;
|
|
34
|
+
};
|
|
35
|
+
declare const TextInput: TextInputComponent;
|
|
56
36
|
export default TextInput;
|
|
57
37
|
//# sourceMappingURL=TextInput.d.ts.map
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type TextStyle, type StyleProp } from 'react-native';
|
|
3
|
+
import type { Modes } from '../../design-tokens';
|
|
4
|
+
/**
|
|
5
|
+
* A single coloured run inside a {@link TextSegment}. Each run can carry its own
|
|
6
|
+
* `modes`, so individual fragments of the same paragraph can resolve different
|
|
7
|
+
* design tokens (most commonly a different `text/foreground` colour) while still
|
|
8
|
+
* flowing — and wrapping — inline as one continuous line of text.
|
|
9
|
+
*/
|
|
10
|
+
export type TextSegmentRun = {
|
|
11
|
+
/** The text for this run. Include trailing/leading spaces yourself when you want spacing between runs (inline text has no gap concept). */
|
|
12
|
+
text: string;
|
|
13
|
+
/**
|
|
14
|
+
* Per-run mode overrides. Merged on top of the parent `TextSegment` modes, so
|
|
15
|
+
* a run only needs to specify what differs (e.g. `{ 'Text Appearance': 'Primary' }`
|
|
16
|
+
* to recolour just that fragment). Everything else is inherited.
|
|
17
|
+
*/
|
|
18
|
+
modes?: Modes;
|
|
19
|
+
/** Optional per-run style override applied last, on top of the token-resolved style. */
|
|
20
|
+
style?: StyleProp<TextStyle>;
|
|
21
|
+
};
|
|
22
|
+
export type TextSegmentProps = {
|
|
23
|
+
/**
|
|
24
|
+
* Declarative, data-driven way to compose a multi-colour string. Each entry
|
|
25
|
+
* becomes an inline run. This is the simplest API when the segments are known
|
|
26
|
+
* up front:
|
|
27
|
+
*
|
|
28
|
+
* ```tsx
|
|
29
|
+
* <TextSegment segments={[
|
|
30
|
+
* { text: 'Upsell message ' },
|
|
31
|
+
* { text: 'JioFinance+', modes: { 'Text Appearance': 'Primary' } },
|
|
32
|
+
* ]} />
|
|
33
|
+
* ```
|
|
34
|
+
*
|
|
35
|
+
* When both `segments` and `children` are provided, `children` win.
|
|
36
|
+
*/
|
|
37
|
+
segments?: TextSegmentRun[];
|
|
38
|
+
/**
|
|
39
|
+
* Compositional alternative to {@link TextSegmentProps.segments}. Pass library
|
|
40
|
+
* `Text` elements (or plain strings) as children and they are rendered nested
|
|
41
|
+
* inside the same paragraph so they wrap together. The parent `modes` cascade
|
|
42
|
+
* down to every child via `cloneChildrenWithModes`, and each child may still
|
|
43
|
+
* override with its own `modes`:
|
|
44
|
+
*
|
|
45
|
+
* ```tsx
|
|
46
|
+
* <TextSegment>
|
|
47
|
+
* <Text>Upsell message </Text>
|
|
48
|
+
* <Text modes={{ 'Text Appearance': 'Primary' }}>JioFinance+</Text>
|
|
49
|
+
* </TextSegment>
|
|
50
|
+
* ```
|
|
51
|
+
*/
|
|
52
|
+
children?: React.ReactNode;
|
|
53
|
+
/** Horizontal alignment of the whole paragraph. */
|
|
54
|
+
textAlign?: 'Left' | 'Center';
|
|
55
|
+
/** Clamp the paragraph to this many lines (truncates with an ellipsis). Applies to the whole composed line, not per-run. */
|
|
56
|
+
numberOfLines?: number;
|
|
57
|
+
/**
|
|
58
|
+
* When `true`, disables truncation entirely: the trailing ellipsis (`…`) is
|
|
59
|
+
* never shown and the `numberOfLines` clamp is ignored, so the paragraph
|
|
60
|
+
* wraps to as many lines as it needs even when horizontal space is tight.
|
|
61
|
+
*/
|
|
62
|
+
disableTruncation?: boolean;
|
|
63
|
+
/** Mode configuration used for the base style and cascaded to every run/child. */
|
|
64
|
+
modes?: Modes;
|
|
65
|
+
/** Style override applied to the outer paragraph (e.g. width constraints to force wrapping). */
|
|
66
|
+
style?: StyleProp<TextStyle>;
|
|
67
|
+
};
|
|
68
|
+
/**
|
|
69
|
+
* TextSegment — composes several differently-styled text runs into a single
|
|
70
|
+
* paragraph that wraps as one continuous line.
|
|
71
|
+
*
|
|
72
|
+
* On the web you would reach for `<span>`s inside a `<p>`; the React Native
|
|
73
|
+
* equivalent is nesting `<Text>` inside a parent `<Text>`. That nesting is the
|
|
74
|
+
* whole trick: sibling `<View>`s would lay out as flex blocks and break onto
|
|
75
|
+
* rigid rows, but nested `<Text>` nodes flow inline and wrap naturally at word
|
|
76
|
+
* boundaries — exactly like a real paragraph — while each nested run keeps its
|
|
77
|
+
* own colour/weight resolved from its own `modes`.
|
|
78
|
+
*
|
|
79
|
+
* Two equivalent ways to author content:
|
|
80
|
+
* - **`segments` prop** — declarative array of `{ text, modes }` runs.
|
|
81
|
+
* - **`children`** — pass library `Text` elements (or strings); the parent
|
|
82
|
+
* `modes` cascade down and each child may override its own.
|
|
83
|
+
*
|
|
84
|
+
* @example Data-driven
|
|
85
|
+
* ```tsx
|
|
86
|
+
* <TextSegment
|
|
87
|
+
* segments={[
|
|
88
|
+
* { text: 'Upsell message ' },
|
|
89
|
+
* { text: 'JioFinance+', modes: { 'Text Appearance': 'Primary' } },
|
|
90
|
+
* ]}
|
|
91
|
+
* />
|
|
92
|
+
* ```
|
|
93
|
+
*
|
|
94
|
+
* @example Compositional
|
|
95
|
+
* ```tsx
|
|
96
|
+
* <TextSegment numberOfLines={2}>
|
|
97
|
+
* <Text>Pay with </Text>
|
|
98
|
+
* <Text modes={{ 'Text Appearance': 'Primary' }}>JioFinance+</Text>
|
|
99
|
+
* <Text> and earn rewards on every transaction.</Text>
|
|
100
|
+
* </TextSegment>
|
|
101
|
+
* ```
|
|
102
|
+
*/
|
|
103
|
+
declare function TextSegment({ segments, children, textAlign, numberOfLines, disableTruncation, modes, style, }: TextSegmentProps): import("react/jsx-runtime").JSX.Element;
|
|
104
|
+
declare const _default: React.MemoExoticComponent<typeof TextSegment>;
|
|
105
|
+
export default _default;
|
|
106
|
+
//# sourceMappingURL=TextSegment.d.ts.map
|
|
@@ -14,9 +14,15 @@ export type ThreadHeroProps = {
|
|
|
14
14
|
modes?: Modes;
|
|
15
15
|
/** Optional container style */
|
|
16
16
|
style?: ViewStyle;
|
|
17
|
+
/**
|
|
18
|
+
* When `true`, disables text truncation: the trailing ellipsis (`…`) is never
|
|
19
|
+
* shown and any `numberOfLines` clamp is ignored, so the text wraps to as many
|
|
20
|
+
* lines as it needs even when horizontal space is tight.
|
|
21
|
+
*/
|
|
22
|
+
disableTruncation?: boolean;
|
|
17
23
|
};
|
|
18
24
|
/**
|
|
19
25
|
* ThreadHero component displaying a central identity with avatar, title, subtitle, and caption.
|
|
20
26
|
*/
|
|
21
|
-
export default function ThreadHero({ title, subtitle, caption, renderAvatar, modes, style, }: ThreadHeroProps): import("react/jsx-runtime").JSX.Element;
|
|
27
|
+
export default function ThreadHero({ title, subtitle, caption, renderAvatar, modes, style, disableTruncation, }: ThreadHeroProps): import("react/jsx-runtime").JSX.Element;
|
|
22
28
|
//# sourceMappingURL=ThreadHero.d.ts.map
|
|
@@ -13,9 +13,15 @@ export type TitleProps = {
|
|
|
13
13
|
/** Optional style overrides for the subtitle text. */
|
|
14
14
|
subtitleStyle?: StyleProp<TextStyle>;
|
|
15
15
|
numberOfLines?: number;
|
|
16
|
+
/**
|
|
17
|
+
* When `true`, disables truncation for both the title and subtitle: the
|
|
18
|
+
* trailing ellipsis (`…`) is never shown and the `numberOfLines` clamp is
|
|
19
|
+
* ignored, so the text wraps fully even when horizontal space is tight.
|
|
20
|
+
*/
|
|
21
|
+
disableTruncation?: boolean;
|
|
16
22
|
accessibilityLabel?: string;
|
|
17
23
|
accessibilityHint?: string;
|
|
18
24
|
} & React.ComponentProps<typeof View>;
|
|
19
|
-
declare function Title({ title, subtitle, textAlign, modes: propModes, style, textStyle, subtitleStyle, numberOfLines, accessibilityLabel, accessibilityHint, ...rest }: TitleProps): import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
declare function Title({ title, subtitle, textAlign, modes: propModes, style, textStyle, subtitleStyle, numberOfLines, disableTruncation, accessibilityLabel, accessibilityHint, ...rest }: TitleProps): import("react/jsx-runtime").JSX.Element;
|
|
20
26
|
export default Title;
|
|
21
27
|
//# sourceMappingURL=Title.d.ts.map
|
|
@@ -9,7 +9,13 @@ export interface ToastProps {
|
|
|
9
9
|
modes?: Modes | undefined;
|
|
10
10
|
placement?: ToastPlacement | undefined;
|
|
11
11
|
style?: StyleProp<ViewStyle> | undefined;
|
|
12
|
+
/**
|
|
13
|
+
* When `true`, disables text truncation: the trailing ellipsis (`…`) is never
|
|
14
|
+
* shown and any `numberOfLines` clamp is ignored, so the text wraps to as many
|
|
15
|
+
* lines as it needs even when horizontal space is tight.
|
|
16
|
+
*/
|
|
17
|
+
disableTruncation?: boolean;
|
|
12
18
|
}
|
|
13
|
-
declare function Toast({ id, title, timeout, onClose, modes, placement, style, }: ToastProps): import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
declare function Toast({ id, title, timeout, onClose, modes, placement, style, disableTruncation, }: ToastProps): import("react/jsx-runtime").JSX.Element;
|
|
14
20
|
export default Toast;
|
|
15
21
|
//# sourceMappingURL=Toast.d.ts.map
|
|
@@ -17,6 +17,12 @@ export type TransactionBubbleProps = {
|
|
|
17
17
|
accessibilityLabel?: string;
|
|
18
18
|
accessibilityHint?: string;
|
|
19
19
|
webAccessibilityProps?: WebAccessibilityProps;
|
|
20
|
+
/**
|
|
21
|
+
* When `true`, disables text truncation: the trailing ellipsis (`…`) is never
|
|
22
|
+
* shown and any `numberOfLines` clamp is ignored, so the text wraps to as many
|
|
23
|
+
* lines as it needs even when horizontal space is tight.
|
|
24
|
+
*/
|
|
25
|
+
disableTruncation?: boolean;
|
|
20
26
|
} & Omit<PressableProps, 'style' | 'children' | 'onPress'>;
|
|
21
27
|
/**
|
|
22
28
|
* TransactionBubble — Figma node 1517:1155.
|
|
@@ -35,6 +41,6 @@ export type TransactionBubbleProps = {
|
|
|
35
41
|
* statusWrap: TransactionStatus + NavArrow, horizontal row with `transactionBubble/statusWrap/gap`.
|
|
36
42
|
* Container gap between sections: `transactionBubble/gap`.
|
|
37
43
|
*/
|
|
38
|
-
declare function TransactionBubble({ description, value, currency, status, date, statusSlot, children, modes, onPress, style, accessibilityLabel, accessibilityHint, webAccessibilityProps, ...rest }: TransactionBubbleProps): import("react/jsx-runtime").JSX.Element;
|
|
44
|
+
declare function TransactionBubble({ description, value, currency, status, date, statusSlot, children, modes, onPress, style, accessibilityLabel, accessibilityHint, webAccessibilityProps, disableTruncation, ...rest }: TransactionBubbleProps): import("react/jsx-runtime").JSX.Element;
|
|
39
45
|
export default TransactionBubble;
|
|
40
46
|
//# sourceMappingURL=TransactionBubble.d.ts.map
|
|
@@ -9,9 +9,15 @@ export type TransactionStatusProps = {
|
|
|
9
9
|
modes?: Modes;
|
|
10
10
|
/** Optional container style */
|
|
11
11
|
style?: ViewStyle;
|
|
12
|
+
/**
|
|
13
|
+
* When `true`, disables text truncation: the trailing ellipsis (`…`) is never
|
|
14
|
+
* shown and any `numberOfLines` clamp is ignored, so the text wraps to as many
|
|
15
|
+
* lines as it needs even when horizontal space is tight.
|
|
16
|
+
*/
|
|
17
|
+
disableTruncation?: boolean;
|
|
12
18
|
};
|
|
13
19
|
/**
|
|
14
20
|
* TransactionStatus component displaying status icon, label, and date.
|
|
15
21
|
*/
|
|
16
|
-
export default function TransactionStatus({ status, date, modes, style, }: TransactionStatusProps): import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
export default function TransactionStatus({ status, date, modes, style, disableTruncation, }: TransactionStatusProps): import("react/jsx-runtime").JSX.Element;
|
|
17
23
|
//# sourceMappingURL=TransactionStatus.d.ts.map
|
|
@@ -25,6 +25,12 @@ type UpiHandleProps = {
|
|
|
25
25
|
onPress?: () => void;
|
|
26
26
|
onClick?: () => void;
|
|
27
27
|
disabled?: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* When `true`, disables text truncation: the trailing ellipsis (`…`) is never
|
|
30
|
+
* shown and any `numberOfLines` clamp is ignored, so the text wraps to as many
|
|
31
|
+
* lines as it needs even when horizontal space is tight.
|
|
32
|
+
*/
|
|
33
|
+
disableTruncation?: boolean;
|
|
28
34
|
} & Omit<React.ComponentProps<typeof View>, 'style' | 'accessibilityRole' | 'accessibilityLabel' | 'accessibilityHint'>;
|
|
29
35
|
/**
|
|
30
36
|
* UpiHandle pill that mirrors the Figma "UPI Handle" component.
|
|
@@ -49,7 +55,7 @@ type UpiHandleProps = {
|
|
|
49
55
|
* - Focus state is mirrored on web only (gated setter).
|
|
50
56
|
* - Wrapped in `React.memo`.
|
|
51
57
|
*/
|
|
52
|
-
declare function UpiHandle({ label, modes: propModes, showIcon, iconName, source, avatarSource, onPress, onClick, disabled, accessibilityLabel: _accessibilityLabel, accessibilityHint, ...rest }: UpiHandleProps): import("react/jsx-runtime").JSX.Element;
|
|
58
|
+
declare function UpiHandle({ label, modes: propModes, showIcon, iconName, source, avatarSource, onPress, onClick, disabled, disableTruncation, accessibilityLabel: _accessibilityLabel, accessibilityHint, ...rest }: UpiHandleProps): import("react/jsx-runtime").JSX.Element;
|
|
53
59
|
declare const _default: React.MemoExoticComponent<typeof UpiHandle>;
|
|
54
60
|
export default _default;
|
|
55
61
|
//# sourceMappingURL=UpiHandle.d.ts.map
|
|
@@ -4,7 +4,8 @@ export { default as Attached, type AttachedProps, type AttachedPosition } from '
|
|
|
4
4
|
export { default as AppBar } from './AppBar/AppBar';
|
|
5
5
|
export { default as Avatar, type AvatarProps } from './Avatar/Avatar';
|
|
6
6
|
export { default as AvatarGroup } from './AvatarGroup/AvatarGroup';
|
|
7
|
-
export { default as Badge } from './Badge/Badge';
|
|
7
|
+
export { default as Badge, type BadgeProps, type BadgeType } from './Badge/Badge';
|
|
8
|
+
export { default as BenefitCard, type BenefitCardProps, type BenefitCardItem } from './BenefitCard/BenefitCard';
|
|
8
9
|
export { default as BottomNav } from './BottomNav/BottomNav';
|
|
9
10
|
export { default as BottomNavItem } from './BottomNavItem/BottomNavItem';
|
|
10
11
|
export { default as BrandChip, type BrandChipProps } from './BrandChip/BrandChip';
|
|
@@ -20,13 +21,14 @@ export { default as CheckboxGroup, type CheckboxGroupProps } from './CheckboxGro
|
|
|
20
21
|
export { default as CardFeedback, type CardFeedbackProps } from './CardFeedback/CardFeedback';
|
|
21
22
|
export { default as CardFinancialCondition, type CardFinancialConditionProps } from './CardFinancialCondition/CardFinancialCondition';
|
|
22
23
|
export { default as CardInsight, type CardInsightProps } from './CardInsight/CardInsight';
|
|
24
|
+
export { default as CcCard, type CcCardProps, type CcCardBadge, type CcCardListItem } from './CcCard/CcCard';
|
|
23
25
|
export { default as Disclaimer } from './Disclaimer/Disclaimer';
|
|
24
26
|
export { default as Divider, type DividerProps, type DividerDirection } from './Divider/Divider';
|
|
25
27
|
export { default as Drawer, type DrawerProps, type DrawerHandle } from './Drawer/Drawer';
|
|
26
28
|
export { default as Dropdown, DropdownItem, type DropdownProps, type DropdownItemProps } from './Dropdown/Dropdown';
|
|
27
|
-
export { default as DropdownInput, type DropdownInputProps, type DropdownInputOption, type DropdownInputOptionValue } from './DropdownInput/DropdownInput';
|
|
29
|
+
export { default as DropdownInput, type DropdownInputProps, type DropdownInputHandle, type DropdownInputOption, type DropdownInputOptionValue } from './DropdownInput/DropdownInput';
|
|
28
30
|
export { default as SuggestiveSearch, type SuggestiveSearchProps, type SuggestiveSearchOption, type SuggestiveSearchOptionValue, type SuggestiveSearchItem } from './SuggestiveSearch/SuggestiveSearch';
|
|
29
|
-
export { default as CardCTA, type CardCTAProps, type CardCTAType } from './CardCTA/CardCTA';
|
|
31
|
+
export { default as CardCTA, type CardCTAProps, type CardCTAType, type CardCTATypeInput } from './CardCTA/CardCTA';
|
|
30
32
|
export { default as DebitCard, type DebitCardProps } from './DebitCard/DebitCard';
|
|
31
33
|
export { default as FilterBar } from './FilterBar/FilterBar';
|
|
32
34
|
export { default as FullscreenModal, type FullscreenModalProps } from './FullscreenModal/FullscreenModal';
|
|
@@ -38,6 +40,7 @@ export { default as CircularProgressBarDoted, type CircularProgressBarDotedProps
|
|
|
38
40
|
export { default as CircularRating, type CircularRatingProps } from './CircularRating/CircularRating';
|
|
39
41
|
export { default as CoverageRing, type CoverageRingProps } from './CoverageRing/CoverageRing';
|
|
40
42
|
export { default as CoverageBarComparison, type CoverageBarComparisonProps, type CoverageBarComparisonItem } from './CoverageBarComparison/CoverageBarComparison';
|
|
43
|
+
export { default as ComparisonBar, type ComparisonBarProps, type ComparisonBarItem } from './ComparisonBar/ComparisonBar';
|
|
41
44
|
export { default as AllocationComparisonChart, type AllocationComparisonChartProps, type AllocationSegment } from './AllocationComparisonChart/AllocationComparisonChart';
|
|
42
45
|
export { default as MonthlyStatusGrid, CalendarGlyph, type MonthlyStatusGridProps, type MonthlyStatusGridMonth, type MonthlyStatus, type CalendarGlyphProps } from './MonthlyStatusGrid/MonthlyStatusGrid';
|
|
43
46
|
export { default as Gauge, type GaugeProps } from './Gauge/Gauge';
|
|
@@ -67,7 +70,9 @@ export { default as Overlay, type OverlayProps } from './Overlay/Overlay';
|
|
|
67
70
|
export { default as Title, type TitleProps } from './Title/Title';
|
|
68
71
|
export { default as Screen, type ScreenProps } from './Screen/Screen';
|
|
69
72
|
export { default as Section } from './Section/Section';
|
|
73
|
+
export { default as Slider, type SliderProps, type SliderHandle } from './Slider/Slider';
|
|
70
74
|
export { default as Slot, type SlotProps, type SlotLayoutDirection } from './Slot/Slot';
|
|
75
|
+
export { default as Stack, type StackProps, type StackLayoutDirection, } from './Stack/Stack';
|
|
71
76
|
export { default as Spinner, type SpinnerProps, type SpinnerColors } from './Spinner/Spinner';
|
|
72
77
|
export { default as Stepper, type StepperProps } from './Stepper/Stepper';
|
|
73
78
|
export { Step, type StepProps, type StepStatus } from './Stepper/Step';
|
|
@@ -117,12 +122,17 @@ export { default as ToastProvider, type ToastProviderProps } from './Toast/Toast
|
|
|
117
122
|
export { useToast, addToast, closeToast, closeAll, type ToastOptions, type ToastEntry, type ToastPlacement } from './Toast/useToast';
|
|
118
123
|
export { default as AmountInput, type AmountInputProps } from './AmountInput/AmountInput';
|
|
119
124
|
export { default as PageHero, type PageHeroProps } from './PageHero/PageHero';
|
|
125
|
+
export { default as PdpCcCard, type PdpCcCardProps, type PdpCcCardMetric } from './PdpCcCard/PdpCcCard';
|
|
120
126
|
export { default as Popup, type PopupProps, type PopupRef } from './Popup/Popup';
|
|
121
127
|
export { default as PortfolioHero, type PortfolioHeroProps } from './PortfolioHero/PortfolioHero';
|
|
122
128
|
export { default as PlanComparisonCard, type PlanComparisonCardProps, type PlanComparisonColumn, type PlanComparisonRow, type PlanComparisonCellValue } from './PlanComparisonCard/PlanComparisonCard';
|
|
129
|
+
export { default as CompareTable, type CompareTableProps, type CompareTableColumn, type CompareTableRow, type CompareTableCellValue, type CompareTableSection } from './CompareTable/CompareTable';
|
|
130
|
+
export { default as Table, TableHeader, TableHeaderCell, TableBody, TableRow, TableCell, type TableProps, type TableColumn, type TableCellAlign, type TableHeaderProps, type TableHeaderCellProps, type TableBodyProps, type TableRowProps, type TableCellProps, } from './Table/Table';
|
|
123
131
|
export { default as PoweredByLabel, type PoweredByLabelProps } from './PoweredByLabel/PoweredByLabel';
|
|
124
132
|
export { default as ProductLabel, type ProductLabelProps } from './ProductLabel/ProductLabel';
|
|
133
|
+
export { default as ProductMerchandisingCard, type ProductMerchandisingCardProps } from './ProductMerchandisingCard/ProductMerchandisingCard';
|
|
125
134
|
export { default as ProductOverview, type ProductOverviewProps, type ProductOverviewStat } from './ProductOverview/ProductOverview';
|
|
135
|
+
export { default as ProjectionMarker, type ProjectionMarkerProps } from './ProjectionMarker/ProjectionMarker';
|
|
126
136
|
export { default as ProgressBadge, type ProgressBadgeProps } from './ProgressBadge/ProgressBadge';
|
|
127
137
|
export { default as SwappableAmount, type SwappableAmountProps } from './SwappableAmount/SwappableAmount';
|
|
128
138
|
export { default as OTP, OTPResend, useOtpResend, type OTPProps, type OTPResendProps, type OTPResendConfig, type UseOtpResendOptions, type UseOtpResendReturn, type OtpResendState, } from './OTP/OTP';
|
|
@@ -133,6 +143,7 @@ export { default as StrengthIndicator, type StrengthIndicatorProps, type Strengt
|
|
|
133
143
|
export { default as SummaryTile, type SummaryTileProps } from './SummaryTile/SummaryTile';
|
|
134
144
|
export { default as TestimonialsCard, type TestimonialsCardProps } from './TestimonialsCard/TestimonialsCard';
|
|
135
145
|
export { default as Text, type TextProps } from './Text/Text';
|
|
146
|
+
export { default as TextSegment, type TextSegmentProps, type TextSegmentRun } from './TextSegment/TextSegment';
|
|
136
147
|
export { default as SegmentedControl, type SegmentedControlProps, type SegmentedControlItem } from './SegmentedControl/SegmentedControl';
|
|
137
148
|
export { default as Toggle, type ToggleProps } from './Toggle/Toggle';
|
|
138
149
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -22,11 +22,12 @@ export declare const FIGMA_MODES: {
|
|
|
22
22
|
readonly "Attached / Output": readonly ["Default"];
|
|
23
23
|
readonly "Avatar / Output": readonly ["Default"];
|
|
24
24
|
readonly "Avatar Group / Output": readonly ["Default"];
|
|
25
|
-
readonly "Avatar Size": readonly ["L", "M", "S"];
|
|
25
|
+
readonly "Avatar Size": readonly ["L", "M", "S", "XS"];
|
|
26
26
|
readonly "Avatar Type": readonly ["Avatar", "Icon", "Text"];
|
|
27
27
|
readonly "Axis / Output": readonly ["Default"];
|
|
28
28
|
readonly Background: readonly ["False", "True"];
|
|
29
29
|
readonly "Badge / Output": readonly ["Default"];
|
|
30
|
+
readonly "Badge Size": readonly ["Medium", "Small"];
|
|
30
31
|
readonly "Balance / Output": readonly ["Default"];
|
|
31
32
|
readonly "BankAccountCard / Output": readonly ["Default"];
|
|
32
33
|
readonly "Benefit Card": readonly ["Default"];
|
|
@@ -52,6 +53,7 @@ export declare const FIGMA_MODES: {
|
|
|
52
53
|
readonly cardsShared: readonly ["Default"];
|
|
53
54
|
readonly "Carousel / Output": readonly ["Default"];
|
|
54
55
|
readonly "CarouselCardAccounts / Output": readonly ["Default"];
|
|
56
|
+
readonly "ccCard / Output": readonly ["Default"];
|
|
55
57
|
readonly "checkbox / Output": readonly ["Default"];
|
|
56
58
|
readonly "Checkbox / Output": readonly ["Default"];
|
|
57
59
|
readonly "Checkbox states": readonly ["Idle", "Hover", "Focus", "Focus Selected", "Selected Hover", "Disabled/Active", "Disabled", "Selected"];
|
|
@@ -67,7 +69,12 @@ export declare const FIGMA_MODES: {
|
|
|
67
69
|
readonly "circularProgressBar / Output": readonly ["Default"];
|
|
68
70
|
readonly "circularProgressBar Size": readonly ["S", "M"];
|
|
69
71
|
readonly "clusterBubble / Output": readonly ["Default"];
|
|
72
|
+
readonly coincard: readonly ["Mode 1"];
|
|
70
73
|
readonly "Color Mode": readonly ["Light", "Dark"];
|
|
74
|
+
readonly comparetablecell: readonly ["Mode 1"];
|
|
75
|
+
readonly comparetableheader: readonly ["Mode 1"];
|
|
76
|
+
readonly "Comparison Floating card": readonly ["Default"];
|
|
77
|
+
readonly ComparisonCardItem: readonly ["Default"];
|
|
71
78
|
readonly Confidence: readonly ["High", "Medium", "Low", "None"];
|
|
72
79
|
readonly "ContentSheet / Output": readonly ["Default"];
|
|
73
80
|
readonly Context: readonly ["Default", "Nudge&Alert", "CTACard", "ListItem"];
|
|
@@ -78,6 +85,7 @@ export declare const FIGMA_MODES: {
|
|
|
78
85
|
readonly context7: readonly ["Default", "Card"];
|
|
79
86
|
readonly "Contrast Context": readonly ["on dark", "on light"];
|
|
80
87
|
readonly "Conversation Feed / Output": readonly ["Default"];
|
|
88
|
+
readonly "Counter Badge / Output": readonly ["Mode 1"];
|
|
81
89
|
readonly "Coverage Bar Comparison / Output": readonly ["Default"];
|
|
82
90
|
readonly "CoverageRing / Output": readonly ["Mode 1"];
|
|
83
91
|
readonly "CTACard / Output": readonly ["Default"];
|
|
@@ -106,6 +114,7 @@ export declare const FIGMA_MODES: {
|
|
|
106
114
|
readonly FullScreenModal: readonly ["Default"];
|
|
107
115
|
readonly Gap: readonly ["S", "M", "L", "None"];
|
|
108
116
|
readonly "Gauge / Output": readonly ["Default"];
|
|
117
|
+
readonly "Handle Boolean": readonly ["False", "True"];
|
|
109
118
|
readonly "Heading / Output": readonly ["Default"];
|
|
110
119
|
readonly "Heading text": readonly ["Default", "Slot"];
|
|
111
120
|
readonly "Holdings card / Output": readonly ["Default"];
|
|
@@ -113,7 +122,7 @@ export declare const FIGMA_MODES: {
|
|
|
113
122
|
readonly "Icon / Output": readonly ["Default"];
|
|
114
123
|
readonly "Icon Button / Output": readonly ["Default"];
|
|
115
124
|
readonly "Icon Capsule / Output": readonly ["Default"];
|
|
116
|
-
readonly "Icon Capsule Size": readonly ["M", "L", "S"];
|
|
125
|
+
readonly "Icon Capsule Size": readonly ["M", "L", "S", "XS"];
|
|
117
126
|
readonly "Image / Output": readonly ["Default"];
|
|
118
127
|
readonly "Input / Output": readonly ["Default"];
|
|
119
128
|
readonly "Input/PINSlot States": readonly ["Idle", "Active", "Error"];
|
|
@@ -138,6 +147,7 @@ export declare const FIGMA_MODES: {
|
|
|
138
147
|
readonly "Message Direction": readonly ["Incoming (Left)", "Outgoing (Right)"];
|
|
139
148
|
readonly "Message Row / Output": readonly ["Default"];
|
|
140
149
|
readonly "MessageField / Output": readonly ["Default"];
|
|
150
|
+
readonly metricdata: readonly ["Mode 1"];
|
|
141
151
|
readonly "MetricLegendItem / Output": readonly ["Default"];
|
|
142
152
|
readonly "Money Value / Output": readonly ["Default"];
|
|
143
153
|
readonly "MonthlyStatusGrid / Output": readonly ["Default"];
|
|
@@ -155,15 +165,18 @@ export declare const FIGMA_MODES: {
|
|
|
155
165
|
readonly "Page type": readonly ["MainPage", "SubPage", "JioPlus"];
|
|
156
166
|
readonly "PageHero / Output": readonly ["Default"];
|
|
157
167
|
readonly "PaymnetFeedback / Output": readonly ["Default"];
|
|
168
|
+
readonly "PDP cc card": readonly ["Mode 1"];
|
|
158
169
|
readonly peekOffset: readonly ["Medium", "Small", "Large", "None"];
|
|
159
170
|
readonly Placement: readonly ["Prefix", "Suffix"];
|
|
160
171
|
readonly "PlanComparisonCard / Output": readonly ["Default"];
|
|
161
172
|
readonly "Popup / Output": readonly ["Default"];
|
|
162
173
|
readonly "PortfolioHero / Output": readonly ["Default"];
|
|
163
174
|
readonly PoweredByLabel: readonly ["Default"];
|
|
175
|
+
readonly "Product Merchandising card": readonly ["Mode 1"];
|
|
164
176
|
readonly "ProductLabel / Output": readonly ["Default"];
|
|
165
177
|
readonly "ProductOverview / Output": readonly ["Default"];
|
|
166
178
|
readonly "ProgressBadge / Output": readonly ["Default"];
|
|
179
|
+
readonly ProjectionMarker: readonly ["Mode 1"];
|
|
167
180
|
readonly "QR code / Output": readonly ["Idle"];
|
|
168
181
|
readonly "Radio / Output": readonly ["Default"];
|
|
169
182
|
readonly Radius: readonly ["S", "M", "L", "None"];
|
|
@@ -181,8 +194,10 @@ export declare const FIGMA_MODES: {
|
|
|
181
194
|
readonly "SegmentedControl/Segment / Output": readonly ["Default"];
|
|
182
195
|
readonly "SegmentedTrack / Output": readonly ["Default"];
|
|
183
196
|
readonly Selectable: readonly ["False", "True"];
|
|
197
|
+
readonly selectioncard: readonly ["Mode 1"];
|
|
184
198
|
readonly "Semantic Intent": readonly ["Brand", "System"];
|
|
185
199
|
readonly Skeleton: readonly ["Mode 1"];
|
|
200
|
+
readonly "Slider / Output": readonly ["Default"];
|
|
186
201
|
readonly "Slot gap": readonly ["S", "M", "L", "XL"];
|
|
187
202
|
readonly "special button": readonly ["Default"];
|
|
188
203
|
readonly "Spinner / Output": readonly ["Default"];
|
|
@@ -203,14 +218,19 @@ export declare const FIGMA_MODES: {
|
|
|
203
218
|
readonly "SwappableAmount / Output": readonly ["Default"];
|
|
204
219
|
readonly "tabItem / Output": readonly ["Default"];
|
|
205
220
|
readonly "Tabs / Output": readonly ["Default"];
|
|
221
|
+
readonly TestimonialsCard: readonly ["Default"];
|
|
206
222
|
readonly "Text / Output": readonly ["Default"];
|
|
223
|
+
readonly "Text Appearance": readonly ["Neutral", "Primary", "Secondary", "Tertiary"];
|
|
224
|
+
readonly "Text Sizes": readonly ["Medium", "Small"];
|
|
207
225
|
readonly "textInput / Output": readonly ["Default"];
|
|
226
|
+
readonly "TextSegment / Output": readonly ["Default"];
|
|
208
227
|
readonly "Thread Hero / Output": readonly ["Default"];
|
|
209
228
|
readonly "Title / Output": readonly ["Default"];
|
|
210
229
|
readonly "Title Level": readonly ["Default", "Bold"];
|
|
211
230
|
readonly "Toggle / Output": readonly ["Default"];
|
|
212
231
|
readonly "Toggle States": readonly ["Off", "On", "Disabled Off", "Disabled On"];
|
|
213
232
|
readonly "ToggleIconButton / Output": readonly ["Default"];
|
|
233
|
+
readonly Tooltip: readonly ["True", "False"];
|
|
214
234
|
readonly "tooltip / Output": readonly ["Default"];
|
|
215
235
|
readonly "Tost Output": readonly ["Default"];
|
|
216
236
|
readonly "Transaction Status": readonly ["Request", "Paid", "Declined", "Expired"];
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Auto-generated from SVG files in src/icons/
|
|
5
5
|
* DO NOT EDIT MANUALLY - Run "npm run icons:generate" to regenerate
|
|
6
6
|
*
|
|
7
|
-
* Generated: 2026-06-
|
|
7
|
+
* Generated: 2026-06-22T15:37:25.988Z
|
|
8
8
|
*/
|
|
9
9
|
export declare const iconRegistry: Record<string, {
|
|
10
10
|
path: string;
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { type ViewStyle, type StyleProp } from 'react-native';
|
|
2
|
+
export type GlassTint = 'dark' | 'light';
|
|
3
|
+
export interface GlassFillProps {
|
|
4
|
+
/**
|
|
5
|
+
* Visual tint of the glass surface. Maps to `BlurView`'s `blurType`
|
|
6
|
+
* (`'dark'` | `'light'`) and drives the iOS
|
|
7
|
+
* `reducedTransparencyFallbackColor` so the surface degrades gracefully
|
|
8
|
+
* when "Reduce Transparency" is enabled in system accessibility settings.
|
|
9
|
+
*/
|
|
10
|
+
tint?: GlassTint;
|
|
11
|
+
/**
|
|
12
|
+
* Blur strength as a 0–100 "intensity" value. Internally mapped to
|
|
13
|
+
* `@react-native-community/blur`'s `blurAmount`. When `progressive` is set,
|
|
14
|
+
* this is the strength at the BOTTOM of the ramp (the strongest point); the
|
|
15
|
+
* ramp is kept intentionally gentle so the surface reads as subtle glass
|
|
16
|
+
* rather than a heavy frosted block.
|
|
17
|
+
*/
|
|
18
|
+
intensity?: number;
|
|
19
|
+
/**
|
|
20
|
+
* Token-derived color tint laid OVER the live blur. Painted as a
|
|
21
|
+
* translucent overlay so the glass keeps its color signature even when the
|
|
22
|
+
* platform blur quality varies (or realtime blur is unavailable).
|
|
23
|
+
*/
|
|
24
|
+
overlayColor?: string;
|
|
25
|
+
/**
|
|
26
|
+
* Render a *progressive* (variable) blur instead of a uniform one: fully
|
|
27
|
+
* clear at the top, easing into a soft blur toward the bottom. Implemented
|
|
28
|
+
* by stacking two `MaskedView` + `BlurView` layers (a faint base + a
|
|
29
|
+
* slightly stronger accent near the bottom), each revealed via an eased
|
|
30
|
+
* multi-stop SVG gradient mask so the blur swells smoothly rather than
|
|
31
|
+
* along a hard seam. Works on iOS and Android with no extra native module.
|
|
32
|
+
*/
|
|
33
|
+
progressive?: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* Android-only: paint a barely-there white wash (`rgba(255,255,255,0.03)`)
|
|
36
|
+
* over the uniform blur to lift the community `RealtimeBlurView`, which
|
|
37
|
+
* otherwise reads slightly muddy. Defaults to `true` to match the
|
|
38
|
+
* media/merchandising card surfaces. Smaller surfaces (e.g. a Badge pill)
|
|
39
|
+
* pass `false` to keep the glass perfectly clear. No effect on iOS/web or
|
|
40
|
+
* on the progressive path.
|
|
41
|
+
*/
|
|
42
|
+
androidTintWash?: boolean;
|
|
43
|
+
/**
|
|
44
|
+
* Web-only: multiplier converting the 0–100 `intensity` to CSS blur px (see
|
|
45
|
+
* `GlassFill.web.tsx`). Declared here purely for prop-type parity across the
|
|
46
|
+
* platform split — native always uses the fixed `blurAmount` scale and
|
|
47
|
+
* ignores this value.
|
|
48
|
+
*/
|
|
49
|
+
webBlurScale?: number;
|
|
50
|
+
/**
|
|
51
|
+
* Web-only: upper clamp (px) on the resolved CSS blur. Declared here for
|
|
52
|
+
* parity with the web build; ignored on native.
|
|
53
|
+
*/
|
|
54
|
+
webBlurMaxPx?: number;
|
|
55
|
+
/** Container style overrides. Defaults to `StyleSheet.absoluteFill`. */
|
|
56
|
+
style?: StyleProp<ViewStyle>;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Shared glass / frosted surface for native (iOS + Android).
|
|
60
|
+
*
|
|
61
|
+
* This is the single source of truth for the glass effect used by `MediaCard`,
|
|
62
|
+
* `ProductMerchandisingCard`, `Badge`, and any future consumer. It supersedes
|
|
63
|
+
* the per-component `GlassFill` copies that previously drifted apart.
|
|
64
|
+
*
|
|
65
|
+
* Why this lives in its own platform-split file:
|
|
66
|
+
* - `@react-native-community/blur` is a native-only module; importing it on
|
|
67
|
+
* web throws because it references native components not registered there.
|
|
68
|
+
* Metro's platform-extension resolution picks `GlassFill.tsx` for native
|
|
69
|
+
* and `GlassFill.web.tsx` for web, keeping the web bundle native-free.
|
|
70
|
+
* - Centralizes the `intensity` (0–100) -> `blurAmount` (0–32) mapping so the
|
|
71
|
+
* Figma `blur/minimal` token semantics survive across platforms.
|
|
72
|
+
*
|
|
73
|
+
* On iOS (with the pod installed) this is a real `UIVisualEffectView` (true
|
|
74
|
+
* OS-level live blur). On Android it uses the community blur view. When the
|
|
75
|
+
* native module isn't linked in the running binary, the component degrades to
|
|
76
|
+
* a translucent tinted scrim (`reducedTransparencyFallbackColor` / fallback
|
|
77
|
+
* color) instead of rendering the "Unimplemented component" placeholder.
|
|
78
|
+
*
|
|
79
|
+
* NOTE: the consumer MUST clip this with `overflow: 'hidden'` on a rounded
|
|
80
|
+
* parent — the native blur view does not honor `borderRadius` itself.
|
|
81
|
+
*/
|
|
82
|
+
declare function GlassFill({ tint, intensity, overlayColor, progressive, androidTintWash, style, }: GlassFillProps): import("react/jsx-runtime").JSX.Element;
|
|
83
|
+
export default GlassFill;
|
|
84
|
+
//# sourceMappingURL=GlassFill.d.ts.map
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { type ViewStyle, type StyleProp } from 'react-native';
|
|
2
|
+
export type GlassTint = 'dark' | 'light';
|
|
3
|
+
export interface GlassFillProps {
|
|
4
|
+
tint?: GlassTint;
|
|
5
|
+
intensity?: number;
|
|
6
|
+
overlayColor?: string;
|
|
7
|
+
/**
|
|
8
|
+
* Render a *progressive* (variable) blur: fully clear at the top, easing
|
|
9
|
+
* into a soft blur toward the bottom. On web this mirrors the native
|
|
10
|
+
* technique — two `backdrop-filter` layers, each clipped with an eased
|
|
11
|
+
* multi-stop `mask-image` linear-gradient so the effective blur swells
|
|
12
|
+
* smoothly toward the bottom.
|
|
13
|
+
*/
|
|
14
|
+
progressive?: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* Android-only knob on native; accepted on web for prop parity but unused
|
|
17
|
+
* (web has no equivalent realtime-blur muddiness to lift).
|
|
18
|
+
*/
|
|
19
|
+
androidTintWash?: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* Multiplier converting the 0–100 `intensity` to CSS blur px. Defaults to
|
|
22
|
+
* `0.32` to mirror the native `blurAmount` scale. Exposed so a consumer can
|
|
23
|
+
* preserve a legacy mapping (e.g. `MediaCard` uses `0.3`).
|
|
24
|
+
*/
|
|
25
|
+
webBlurScale?: number;
|
|
26
|
+
/**
|
|
27
|
+
* Upper clamp (px) on the resolved CSS blur. Defaults to `32` to mirror the
|
|
28
|
+
* native cap. `MediaCard` passes `30` to preserve its historical value.
|
|
29
|
+
*/
|
|
30
|
+
webBlurMaxPx?: number;
|
|
31
|
+
style?: StyleProp<ViewStyle>;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Web counterpart of the shared `GlassFill`.
|
|
35
|
+
*
|
|
36
|
+
* `@react-native-community/blur` ships no web implementation, so on web we
|
|
37
|
+
* render a translucent `View` with `backdrop-filter: blur()`. Native bundles
|
|
38
|
+
* pick up `GlassFill.tsx` instead via Metro's platform resolver; the web
|
|
39
|
+
* bundle picks up this file, so the native-only module is never imported here.
|
|
40
|
+
*/
|
|
41
|
+
declare function GlassFill({ tint, intensity, overlayColor, progressive, webBlurScale, webBlurMaxPx, style, }: GlassFillProps): import("react/jsx-runtime").JSX.Element;
|
|
42
|
+
export default GlassFill;
|
|
43
|
+
//# sourceMappingURL=GlassFill.web.d.ts.map
|