jfs-components 0.0.3 → 0.0.4
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/lib/commonjs/components/Accordion/Accordion.js +217 -0
- package/lib/commonjs/components/Accordion/Accordion.js.map +1 -0
- package/lib/commonjs/components/Accordion/Accordion.mdx +122 -0
- package/lib/commonjs/components/ActionTile/ActionTile.js +93 -0
- package/lib/commonjs/components/ActionTile/ActionTile.js.map +1 -0
- package/lib/commonjs/components/ActionTile/ActionTile.mdx +54 -0
- package/lib/commonjs/components/ActionTile/index.js +14 -0
- package/lib/commonjs/components/ActionTile/index.js.map +1 -0
- package/lib/commonjs/components/CtaCard/CtaCard.js +122 -0
- package/lib/commonjs/components/CtaCard/CtaCard.js.map +1 -0
- package/lib/commonjs/components/CtaCard/CtaCard.mdx +66 -0
- package/lib/commonjs/components/CtaCard/index.js +14 -0
- package/lib/commonjs/components/CtaCard/index.js.map +1 -0
- package/lib/commonjs/components/ThreadHero/ThreadHero.js +114 -0
- package/lib/commonjs/components/ThreadHero/ThreadHero.js.map +1 -0
- package/lib/commonjs/components/ThreadHero/ThreadHero.mdx +69 -0
- package/lib/commonjs/components/TransactionBubble/TransactionBubble.js +101 -0
- package/lib/commonjs/components/TransactionBubble/TransactionBubble.js.map +1 -0
- package/lib/commonjs/components/TransactionBubble/TransactionBubble.mdx +40 -0
- package/lib/commonjs/components/TransactionDetails/TransactionDetails.js +177 -0
- package/lib/commonjs/components/TransactionDetails/TransactionDetails.js.map +1 -0
- package/lib/commonjs/components/TransactionDetails/TransactionDetails.mdx +98 -0
- package/lib/commonjs/components/TransactionStatus/TransactionStatus.js +82 -0
- package/lib/commonjs/components/TransactionStatus/TransactionStatus.js.map +1 -0
- package/lib/commonjs/components/TransactionStatus/TransactionStatus.mdx +41 -0
- package/lib/commonjs/components/index.js +35 -0
- package/lib/commonjs/components/index.js.map +1 -1
- package/lib/commonjs/design-tokens/figma-variables-resolver.js +3 -9
- package/lib/commonjs/icons/registry.js +1 -1
- package/lib/module/components/Accordion/Accordion.js +212 -0
- package/lib/module/components/Accordion/Accordion.js.map +1 -0
- package/lib/module/components/Accordion/Accordion.mdx +122 -0
- package/lib/module/components/ActionTile/ActionTile.js +88 -0
- package/lib/module/components/ActionTile/ActionTile.js.map +1 -0
- package/lib/module/components/ActionTile/ActionTile.mdx +54 -0
- package/lib/module/components/ActionTile/index.js +4 -0
- package/lib/module/components/ActionTile/index.js.map +1 -0
- package/lib/module/components/CtaCard/CtaCard.js +117 -0
- package/lib/module/components/CtaCard/CtaCard.js.map +1 -0
- package/lib/module/components/CtaCard/CtaCard.mdx +66 -0
- package/lib/module/components/CtaCard/index.js +4 -0
- package/lib/module/components/CtaCard/index.js.map +1 -0
- package/lib/module/components/ThreadHero/ThreadHero.js +109 -0
- package/lib/module/components/ThreadHero/ThreadHero.js.map +1 -0
- package/lib/module/components/ThreadHero/ThreadHero.mdx +69 -0
- package/lib/module/components/TransactionBubble/TransactionBubble.js +96 -0
- package/lib/module/components/TransactionBubble/TransactionBubble.js.map +1 -0
- package/lib/module/components/TransactionBubble/TransactionBubble.mdx +40 -0
- package/lib/module/components/TransactionDetails/TransactionDetails.js +174 -0
- package/lib/module/components/TransactionDetails/TransactionDetails.js.map +1 -0
- package/lib/module/components/TransactionDetails/TransactionDetails.mdx +98 -0
- package/lib/module/components/TransactionStatus/TransactionStatus.js +77 -0
- package/lib/module/components/TransactionStatus/TransactionStatus.js.map +1 -0
- package/lib/module/components/TransactionStatus/TransactionStatus.mdx +41 -0
- package/lib/module/components/index.js +5 -0
- package/lib/module/components/index.js.map +1 -1
- package/lib/module/design-tokens/figma-variables-resolver.js +2 -2
- package/lib/module/design-tokens/figma-variables-resolver.js.map +2 -1
- package/lib/module/icons/registry.js +1 -1
- package/lib/typescript/components/Accordion/Accordion.d.ts +58 -0
- package/lib/typescript/components/Accordion/Accordion.d.ts.map +1 -0
- package/lib/typescript/components/ActionTile/ActionTile.d.ts +26 -0
- package/lib/typescript/components/ActionTile/ActionTile.d.ts.map +1 -0
- package/lib/typescript/components/ActionTile/index.d.ts +2 -0
- package/lib/typescript/components/ActionTile/index.d.ts.map +1 -0
- package/lib/typescript/components/CtaCard/CtaCard.d.ts +61 -0
- package/lib/typescript/components/CtaCard/CtaCard.d.ts.map +1 -0
- package/lib/typescript/components/CtaCard/index.d.ts +2 -0
- package/lib/typescript/components/CtaCard/index.d.ts.map +1 -0
- package/lib/typescript/components/ThreadHero/ThreadHero.d.ts +21 -0
- package/lib/typescript/components/ThreadHero/ThreadHero.d.ts.map +1 -0
- package/lib/typescript/components/TransactionBubble/TransactionBubble.d.ts +24 -0
- package/lib/typescript/components/TransactionBubble/TransactionBubble.d.ts.map +1 -0
- package/lib/typescript/components/TransactionDetails/TransactionDetails.d.ts +57 -0
- package/lib/typescript/components/TransactionDetails/TransactionDetails.d.ts.map +1 -0
- package/lib/typescript/components/TransactionStatus/TransactionStatus.d.ts +16 -0
- package/lib/typescript/components/TransactionStatus/TransactionStatus.d.ts.map +1 -0
- package/lib/typescript/components/index.d.ts +5 -0
- package/lib/typescript/components/index.d.ts.map +1 -1
- package/lib/typescript/icons/registry.d.ts +1 -1
- package/package.json +5 -2
- package/src/components/.token-metadata.json +161 -0
- package/src/components/Accordion/Accordion.mdx +122 -0
- package/src/components/Accordion/Accordion.tsx +279 -0
- package/src/components/ActionTile/ActionTile.mdx +54 -0
- package/src/components/ActionTile/ActionTile.tsx +100 -0
- package/src/components/ActionTile/index.ts +1 -0
- package/src/components/CtaCard/CtaCard.mdx +66 -0
- package/src/components/CtaCard/CtaCard.tsx +185 -0
- package/src/components/CtaCard/index.ts +1 -0
- package/src/components/ThreadHero/ThreadHero.mdx +69 -0
- package/src/components/ThreadHero/ThreadHero.tsx +124 -0
- package/src/components/TransactionBubble/TransactionBubble.mdx +40 -0
- package/src/components/TransactionBubble/TransactionBubble.tsx +113 -0
- package/src/components/TransactionDetails/TransactionDetails.mdx +98 -0
- package/src/components/TransactionDetails/TransactionDetails.tsx +236 -0
- package/src/components/TransactionStatus/TransactionStatus.mdx +41 -0
- package/src/components/TransactionStatus/TransactionStatus.tsx +94 -0
- package/src/components/index.ts +5 -0
- package/src/icons/registry.ts +1 -1
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { View, type StyleProp, type ViewStyle, type AccessibilityState } from 'react-native';
|
|
3
|
+
import { type WebAccessibilityProps } from '../../utils/web-platform-utils';
|
|
4
|
+
export type AccordionProps = {
|
|
5
|
+
/** The accordion header title */
|
|
6
|
+
title?: string;
|
|
7
|
+
/** Initial expanded state. Defaults to false (collapsed) */
|
|
8
|
+
defaultExpanded?: boolean;
|
|
9
|
+
/** Controlled expanded state. When provided, the component becomes controlled */
|
|
10
|
+
expanded?: boolean;
|
|
11
|
+
/** Callback fired when the accordion's expanded state changes */
|
|
12
|
+
onExpandedChange?: (expanded: boolean) => void;
|
|
13
|
+
/** Whether the accordion is disabled */
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
/** Content to display when the accordion is expanded (Figma Slot: 'content') */
|
|
16
|
+
children?: React.ReactNode;
|
|
17
|
+
/** Modes object passed to getVariableByName for all design tokens */
|
|
18
|
+
modes?: Record<string, any>;
|
|
19
|
+
/** Optional container style overrides */
|
|
20
|
+
style?: StyleProp<ViewStyle>;
|
|
21
|
+
/** Accessibility label for screen readers. If not provided, uses title */
|
|
22
|
+
accessibilityLabel?: string;
|
|
23
|
+
/** Additional accessibility hint for screen readers */
|
|
24
|
+
accessibilityHint?: string;
|
|
25
|
+
/** Additional accessibility state information */
|
|
26
|
+
accessibilityState?: AccessibilityState;
|
|
27
|
+
/** Web-specific accessibility props (only used on web platform) */
|
|
28
|
+
webAccessibilityProps?: WebAccessibilityProps;
|
|
29
|
+
} & React.ComponentProps<typeof View>;
|
|
30
|
+
/**
|
|
31
|
+
* Accordion component that mirrors the Figma "Accordion" component.
|
|
32
|
+
*
|
|
33
|
+
* This component supports:
|
|
34
|
+
* - **Expandable/collapsible content** with smooth animation
|
|
35
|
+
* - **States**: Idle, Hover, Open, Disabled
|
|
36
|
+
* - **Slot** for custom content
|
|
37
|
+
* - **Design-token driven styling** via `getVariableByName` and `modes`
|
|
38
|
+
*
|
|
39
|
+
* Wherever the Figma layer name contains "Slot", this component exposes a
|
|
40
|
+
* dedicated React "slot" prop:
|
|
41
|
+
* - Slot "content" → `children`
|
|
42
|
+
*
|
|
43
|
+
* @component
|
|
44
|
+
* @param {Object} props
|
|
45
|
+
* @param {string} [props.title='Accordion title'] - The accordion header title
|
|
46
|
+
* @param {boolean} [props.defaultExpanded=false] - Initial expanded state
|
|
47
|
+
* @param {boolean} [props.expanded] - Controlled expanded state
|
|
48
|
+
* @param {Function} [props.onExpandedChange] - Callback fired when expanded state changes
|
|
49
|
+
* @param {boolean} [props.disabled=false] - Whether the accordion is disabled
|
|
50
|
+
* @param {React.ReactNode} [props.children] - Content to display when expanded
|
|
51
|
+
* @param {Object} [props.modes={}] - Modes object passed to `getVariableByName` for all design tokens
|
|
52
|
+
* @param {Object} [props.style] - Optional container style overrides
|
|
53
|
+
* @param {string} [props.accessibilityLabel] - Accessibility label for the accordion. If not provided, uses title
|
|
54
|
+
* @param {string} [props.accessibilityHint] - Additional accessibility hint for screen readers
|
|
55
|
+
*/
|
|
56
|
+
declare function Accordion({ title, defaultExpanded, expanded: controlledExpanded, onExpandedChange, disabled, children, modes, style, accessibilityLabel, accessibilityHint, accessibilityState, webAccessibilityProps, ...rest }: AccordionProps): import("react/jsx-runtime").JSX.Element;
|
|
57
|
+
export default Accordion;
|
|
58
|
+
//# sourceMappingURL=Accordion.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Accordion.d.ts","sourceRoot":"","sources":["../../../../src/components/Accordion/Accordion.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAA;AACvC,OAAO,EACL,IAAI,EAMJ,KAAK,SAAS,EACd,KAAK,SAAS,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CAAA"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type ViewStyle } from 'react-native';
|
|
3
|
+
export type ActionTileProps = {
|
|
4
|
+
/** Label text, e.g. "Cards" */
|
|
5
|
+
label?: string;
|
|
6
|
+
/**
|
|
7
|
+
* Icon component slot.
|
|
8
|
+
* Expects an IconCapsule or compatible component.
|
|
9
|
+
* Modes will be passed to this slot if it's a valid React element.
|
|
10
|
+
*/
|
|
11
|
+
icon?: React.ReactNode;
|
|
12
|
+
/** Modes for design token resolution */
|
|
13
|
+
modes?: Record<string, any>;
|
|
14
|
+
/** Optional container style */
|
|
15
|
+
style?: ViewStyle;
|
|
16
|
+
/** Callback when tile is pressed */
|
|
17
|
+
onPress?: () => void;
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* ActionTile component from Figma design.
|
|
21
|
+
* Displays an icon (defaulting to IconCapsule) and a label.
|
|
22
|
+
*
|
|
23
|
+
* @component
|
|
24
|
+
*/
|
|
25
|
+
export default function ActionTile({ label, icon, modes, style, onPress, }: ActionTileProps): import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
//# sourceMappingURL=ActionTile.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ActionTile.d.ts","sourceRoot":"","sources":["../../../../src/components/ActionTile/ActionTile.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAc,KAAK,SAAS,EAAoC,MAAM,cAAc,CAAA;AAI3F,MAAM,MAAM,eAAe,GAAG;IAC1B,+BAA+B;IAC/B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd;;;;OAIG;IACH,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IACtB,wCAAwC;IACxC,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAC3B,+BAA+B;IAC/B,KAAK,CAAC,EAAE,SAAS,CAAA;IACjB,oCAAoC;IACpC,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;CACvB,CAAA;AAED;;;;;GAKG;AACH,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,EAC/B,KAAe,EACf,IAAI,EACJ,KAAU,EACV,KAAK,EACL,OAAO,GACV,EAAE,eAAe,2CAiEjB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/ActionTile/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type StyleProp, type ViewStyle } from 'react-native';
|
|
3
|
+
type CtaCardProps = {
|
|
4
|
+
/**
|
|
5
|
+
* Title text for the card
|
|
6
|
+
*/
|
|
7
|
+
title?: string;
|
|
8
|
+
/**
|
|
9
|
+
* Body text for the card
|
|
10
|
+
*/
|
|
11
|
+
body?: string;
|
|
12
|
+
/**
|
|
13
|
+
* Name of the icon to display in the IconCapsule (if iconSlot is not provided)
|
|
14
|
+
*/
|
|
15
|
+
iconName?: string;
|
|
16
|
+
/**
|
|
17
|
+
* Label for the button (if buttonSlot is not provided)
|
|
18
|
+
*/
|
|
19
|
+
buttonLabel?: string;
|
|
20
|
+
/**
|
|
21
|
+
* Callback for the button press (if buttonSlot is not provided)
|
|
22
|
+
*/
|
|
23
|
+
onPressButton?: () => void;
|
|
24
|
+
/**
|
|
25
|
+
* Modes object for design token resolution
|
|
26
|
+
*/
|
|
27
|
+
modes?: Record<string, any>;
|
|
28
|
+
/**
|
|
29
|
+
* Optional custom slot for the icon area.
|
|
30
|
+
* If provided, overrides the default IconCapsule.
|
|
31
|
+
* `modes` will be automatically passed to this slot if it's a valid React element.
|
|
32
|
+
*/
|
|
33
|
+
iconSlot?: React.ReactNode;
|
|
34
|
+
/**
|
|
35
|
+
* Optional custom slot for the title area.
|
|
36
|
+
* If provided, overrides the default title Text.
|
|
37
|
+
* `modes` will be automatically passed to this slot if it's a valid React element.
|
|
38
|
+
*/
|
|
39
|
+
titleSlot?: React.ReactNode;
|
|
40
|
+
/**
|
|
41
|
+
* Optional custom slot for the body area.
|
|
42
|
+
* If provided, overrides the default body Text.
|
|
43
|
+
* `modes` will be automatically passed to this slot if it's a valid React element.
|
|
44
|
+
*/
|
|
45
|
+
bodySlot?: React.ReactNode;
|
|
46
|
+
/**
|
|
47
|
+
* Optional custom slot for the button area.
|
|
48
|
+
* If provided, overrides the default Button.
|
|
49
|
+
* `modes` will be automatically passed to this slot if it's a valid React element.
|
|
50
|
+
*/
|
|
51
|
+
buttonSlot?: React.ReactNode;
|
|
52
|
+
style?: StyleProp<ViewStyle>;
|
|
53
|
+
};
|
|
54
|
+
/**
|
|
55
|
+
* CtaCard component that maps directly to the Figma design using design tokens.
|
|
56
|
+
*
|
|
57
|
+
* @component
|
|
58
|
+
*/
|
|
59
|
+
declare function CtaCard({ title, body, iconName, buttonLabel, onPressButton, modes, iconSlot, titleSlot, bodySlot, buttonSlot, style, }: CtaCardProps): import("react/jsx-runtime").JSX.Element;
|
|
60
|
+
export default CtaCard;
|
|
61
|
+
//# sourceMappingURL=CtaCard.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CtaCard.d.ts","sourceRoot":"","sources":["../../../../src/components/CtaCard/CtaCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAc,KAAK,SAAS,EAAE,KAAK,SAAS,EAAkB,MAAM,cAAc,CAAC;AAK1F,KAAK,YAAY,GAAG;IAChB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;IAC3B;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC5B;;;;OAIG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B;;;;OAIG;IACH,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC5B;;;;OAIG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B;;;;OAIG;IACH,UAAU,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAE7B,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAChC,CAAC;AAEF;;;;GAIG;AACH,iBAAS,OAAO,CAAC,EACb,KAAiC,EACjC,IAAyC,EACzC,QAA0B,EAC1B,WAA2B,EAC3B,aAAa,EACb,KAAU,EACV,QAAQ,EACR,SAAS,EACT,QAAQ,EACR,UAAU,EACV,KAAK,GACR,EAAE,YAAY,2CA0Gd;AAED,eAAe,OAAO,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/CtaCard/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
import { type ViewStyle } from 'react-native';
|
|
3
|
+
export type ThreadHeroProps = {
|
|
4
|
+
/** Title text, e.g. "Subhash Rajan" */
|
|
5
|
+
title?: string;
|
|
6
|
+
/** Subtitle text, e.g. "Banking name: SHIVASHANKAR RAJAN" */
|
|
7
|
+
subtitle?: string;
|
|
8
|
+
/** Optional caption text below the details, e.g. "+91 00000 00000" */
|
|
9
|
+
caption?: string;
|
|
10
|
+
/** Slot for Avatar component */
|
|
11
|
+
renderAvatar?: ReactNode;
|
|
12
|
+
/** Modes for design token resolution */
|
|
13
|
+
modes?: Record<string, any>;
|
|
14
|
+
/** Optional container style */
|
|
15
|
+
style?: ViewStyle;
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* ThreadHero component displaying a central identity with avatar, title, subtitle, and caption.
|
|
19
|
+
*/
|
|
20
|
+
export default function ThreadHero({ title, subtitle, caption, renderAvatar, modes, style, }: ThreadHeroProps): import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
//# sourceMappingURL=ThreadHero.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ThreadHero.d.ts","sourceRoot":"","sources":["../../../../src/components/ThreadHero/ThreadHero.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAgC,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AAC3E,OAAO,EAAc,KAAK,SAAS,EAAkB,MAAM,cAAc,CAAA;AAGzE,MAAM,MAAM,eAAe,GAAG;IAC1B,uCAAuC;IACvC,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,6DAA6D;IAC7D,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,sEAAsE;IACtE,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,gCAAgC;IAChC,YAAY,CAAC,EAAE,SAAS,CAAA;IACxB,wCAAwC;IACxC,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAC3B,+BAA+B;IAC/B,KAAK,CAAC,EAAE,SAAS,CAAA;CACpB,CAAA;AAED;;GAEG;AACH,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,EAC/B,KAAuB,EACvB,QAA6C,EAC7C,OAAO,EACP,YAAY,EACZ,KAAU,EACV,KAAK,GACR,EAAE,eAAe,2CA8FjB"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { type ViewStyle } from 'react-native';
|
|
2
|
+
export type TransactionBubbleProps = {
|
|
3
|
+
/** Description text, e.g. "Payment to Uber India" */
|
|
4
|
+
description?: string;
|
|
5
|
+
/** Money amount */
|
|
6
|
+
amount?: string | number;
|
|
7
|
+
/** Currency code or symbol */
|
|
8
|
+
currency?: string;
|
|
9
|
+
/** Transaction status text, e.g. "Expired" */
|
|
10
|
+
status?: string;
|
|
11
|
+
/** Date/time string associated with status */
|
|
12
|
+
statusDate?: string;
|
|
13
|
+
/** Modes for design token resolution */
|
|
14
|
+
modes?: Record<string, any>;
|
|
15
|
+
/** Optional container style */
|
|
16
|
+
style?: ViewStyle;
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* TransactionBubble component displaying transaction details in a bubble card.
|
|
20
|
+
*
|
|
21
|
+
* @component
|
|
22
|
+
*/
|
|
23
|
+
export default function TransactionBubble({ description, amount, currency, status, statusDate, modes, style, }: TransactionBubbleProps): import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
//# sourceMappingURL=TransactionBubble.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TransactionBubble.d.ts","sourceRoot":"","sources":["../../../../src/components/TransactionBubble/TransactionBubble.tsx"],"names":[],"mappings":"AACA,OAAO,EAAc,KAAK,SAAS,EAAkB,MAAM,cAAc,CAAA;AAMzE,MAAM,MAAM,sBAAsB,GAAG;IACjC,qDAAqD;IACrD,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,mBAAmB;IACnB,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACxB,8BAA8B;IAC9B,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,8CAA8C;IAC9C,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,8CAA8C;IAC9C,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,wCAAwC;IACxC,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAC3B,+BAA+B;IAC/B,KAAK,CAAC,EAAE,SAAS,CAAA;CACpB,CAAA;AAED;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,iBAAiB,CAAC,EACtC,WAAqC,EACrC,MAAa,EACb,QAAc,EACd,MAAkB,EAClB,UAA0B,EAC1B,KAAU,EACV,KAAK,GACR,EAAE,sBAAsB,2CA2ExB"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { View, type StyleProp, type ViewStyle, type TextStyle } from 'react-native';
|
|
3
|
+
export type TransactionDetailsItemProps = {
|
|
4
|
+
/** The label text displayed above the value (e.g., "UPI transaction ID") */
|
|
5
|
+
label?: string;
|
|
6
|
+
/** The value text displayed below the label (e.g., "101674916166") */
|
|
7
|
+
value?: string;
|
|
8
|
+
/** Modes object passed to `getVariableByName` for design token resolution */
|
|
9
|
+
modes?: Record<string, any>;
|
|
10
|
+
/** Optional container style overrides */
|
|
11
|
+
style?: StyleProp<ViewStyle>;
|
|
12
|
+
/** Optional label text style overrides */
|
|
13
|
+
labelStyle?: StyleProp<TextStyle>;
|
|
14
|
+
/** Optional value text style overrides */
|
|
15
|
+
valueStyle?: StyleProp<TextStyle>;
|
|
16
|
+
/** Accessibility label for screen readers */
|
|
17
|
+
accessibilityLabel?: string;
|
|
18
|
+
} & React.ComponentProps<typeof View>;
|
|
19
|
+
export type TransactionDetailsProps = {
|
|
20
|
+
/** Slot for TransactionDetails.Item children */
|
|
21
|
+
children?: React.ReactNode;
|
|
22
|
+
/** Modes object passed to `getVariableByName` for design token resolution */
|
|
23
|
+
modes?: Record<string, any>;
|
|
24
|
+
/** Optional container style overrides */
|
|
25
|
+
style?: StyleProp<ViewStyle>;
|
|
26
|
+
/** Accessibility label for screen readers */
|
|
27
|
+
accessibilityLabel?: string;
|
|
28
|
+
} & React.ComponentProps<typeof View>;
|
|
29
|
+
/**
|
|
30
|
+
* TransactionDetails component that displays a list of transaction detail items.
|
|
31
|
+
*
|
|
32
|
+
* This component serves as a container for TransactionDetails.Item children, applying consistent
|
|
33
|
+
* spacing and padding as defined by Figma design tokens.
|
|
34
|
+
*
|
|
35
|
+
* @component
|
|
36
|
+
* @param {Object} props
|
|
37
|
+
* @param {React.ReactNode} [props.children] - TransactionDetails.Item children to render.
|
|
38
|
+
* @param {Object} [props.modes={}] - Modes object passed to `getVariableByName` for design tokens.
|
|
39
|
+
* @param {Object} [props.style] - Optional container style overrides.
|
|
40
|
+
* @param {string} [props.accessibilityLabel] - Accessibility label for screen readers.
|
|
41
|
+
*
|
|
42
|
+
* @example
|
|
43
|
+
* ```tsx
|
|
44
|
+
* <TransactionDetails modes={{ 'Color Mode': 'Light' }}>
|
|
45
|
+
* <TransactionDetails.Item label="UPI transaction ID" value="101674916166" />
|
|
46
|
+
* <TransactionDetails.Item label="From" value="JioFinance • shivashankar@okjio" />
|
|
47
|
+
* <TransactionDetails.Item label="To" value="JioFinance • shivashankar@okjio" />
|
|
48
|
+
* <TransactionDetails.Item label="Payment method" value="UPI" />
|
|
49
|
+
* </TransactionDetails>
|
|
50
|
+
* ```
|
|
51
|
+
*/
|
|
52
|
+
declare function TransactionDetails({ children, modes, style, accessibilityLabel, ...rest }: TransactionDetailsProps): import("react/jsx-runtime").JSX.Element;
|
|
53
|
+
declare namespace TransactionDetails {
|
|
54
|
+
var Item: ({ label, value, modes, style, labelStyle, valueStyle, accessibilityLabel, ...rest }: TransactionDetailsItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
55
|
+
}
|
|
56
|
+
export default TransactionDetails;
|
|
57
|
+
//# sourceMappingURL=TransactionDetails.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TransactionDetails.d.ts","sourceRoot":"","sources":["../../../../src/components/TransactionDetails/TransactionDetails.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,IAAI,EAAQ,KAAK,SAAS,EAAE,KAAK,SAAS,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAA;AA4CzF,MAAM,MAAM,2BAA2B,GAAG;IACxC,4EAA4E;IAC5E,KAAK,CA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Date text, e.g. "20 Mar 2025" */
|
|
6
|
+
date?: string;
|
|
7
|
+
/** Modes for design token resolution */
|
|
8
|
+
modes?: Record<string, any>;
|
|
9
|
+
/** Optional container style */
|
|
10
|
+
style?: ViewStyle;
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* TransactionStatus component displaying status icon, label, and date.
|
|
14
|
+
*/
|
|
15
|
+
export default function TransactionStatus({ status, date, modes, style, }: TransactionStatusProps): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
//# sourceMappingURL=TransactionStatus.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TransactionStatus.d.ts","sourceRoot":"","sources":["../../../../src/components/TransactionStatus/TransactionStatus.tsx"],"names":[],"mappings":"AACA,OAAO,EAAc,KAAK,SAAS,EAAkB,MAAM,cAAc,CAAA;AAsCzE,MAAM,MAAM,sBAAsB,GAAG;IACjC,kCAAkC;IAClC,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,oCAAoC;IACpC,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,wCAAwC;IACxC,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAC3B,+BAA+B;IAC/B,KAAK,CAAC,EAAE,SAAS,CAAA;CACpB,CAAA;AAED;;GAEG;AACH,MAAM,CAAC,OAAO,UAAU,iBAAiB,CAAC,EACtC,MAAkB,EAClB,IAAoB,EACpB,KAAU,EACV,KAAK,GACR,EAAE,sBAAsB,2CAmCxB"}
|
|
@@ -11,6 +11,7 @@ export { default as CardFeedback } from './CardFeedback/CardFeedback';
|
|
|
11
11
|
export { default as Disclaimer } from './Disclaimer/Disclaimer';
|
|
12
12
|
export { default as Divider, type DividerProps, type DividerDirection } from './Divider/Divider';
|
|
13
13
|
export { default as Drawer } from './Drawer/Drawer';
|
|
14
|
+
export { default as CtaCard } from './CtaCard/CtaCard';
|
|
14
15
|
export { default as FilterBar } from './FilterBar/FilterBar';
|
|
15
16
|
export { default as IconButton } from './IconButton/IconButton';
|
|
16
17
|
export { default as IconCapsule } from './IconCapsule/IconCapsule';
|
|
@@ -27,6 +28,10 @@ export { default as Stepper } from './Stepper/Stepper';
|
|
|
27
28
|
export { Step } from './Stepper/Step';
|
|
28
29
|
export { StepLabel } from './Stepper/StepLabel';
|
|
29
30
|
export { default as TextInput } from './TextInput/TextInput';
|
|
31
|
+
export { default as ThreadHero, type ThreadHeroProps } from './ThreadHero/ThreadHero';
|
|
30
32
|
export { Tooltip } from './Tooltip/Tooltip';
|
|
33
|
+
export { default as TransactionBubble } from './TransactionBubble/TransactionBubble';
|
|
34
|
+
export { default as TransactionDetails } from './TransactionDetails/TransactionDetails';
|
|
35
|
+
export { default as TransactionStatus } from './TransactionStatus/TransactionStatus';
|
|
31
36
|
export { default as UpiHandle } from './UpiHandle/UpiHandle';
|
|
32
37
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,KAAK,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAC9F,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,KAAK,WAAW,EAAE,MAAM,iBAAiB,CAAC;AACtE,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACnE,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAC7D,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,+BAA+B,CAAC;AACzE,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,KAAK,WAAW,EAAE,MAAM,iBAAiB,CAAC;AACtE,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AAiB,EAAE,MAAM,uCAAuC,CAAC;AACrF,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,yCAAyC,CAAC;AACxF,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,uCAAuC,CAAC;AACrF,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,uBAAuB,CAAC"}
|
|
@@ -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-01-
|
|
7
|
+
* Generated: 2026-01-21T10:51:56.970Z
|
|
8
8
|
*/
|
|
9
9
|
export declare const iconRegistry: Record<string, {
|
|
10
10
|
path: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jfs-components",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.4",
|
|
4
4
|
"description": "React Native Jio Finance Components Library",
|
|
5
5
|
"author": "sunshuaiqi@gmail.com",
|
|
6
6
|
"license": "MIT",
|
|
@@ -95,12 +95,14 @@
|
|
|
95
95
|
"@react-native/metro-config": "0.82.1",
|
|
96
96
|
"@storybook/addon-docs": "^10.0.8",
|
|
97
97
|
"@storybook/addon-links": "^10.0.8",
|
|
98
|
+
"@storybook/blocks": "^8.6.14",
|
|
98
99
|
"@storybook/manager-api": "^8.6.14",
|
|
99
100
|
"@storybook/react-native": "^10.0.7",
|
|
100
101
|
"@storybook/react-webpack5": "^10.0.8",
|
|
101
102
|
"@types/jest": "^30.0.0",
|
|
102
103
|
"@types/react": "^19.2.7",
|
|
103
104
|
"@types/react-native": "^0.73.0",
|
|
105
|
+
"@types/styled-components": "^5.1.36",
|
|
104
106
|
"@typescript-eslint/eslint-plugin": "^8.50.0",
|
|
105
107
|
"@typescript-eslint/parser": "^8.50.0",
|
|
106
108
|
"babel-loader": "^10.0.0",
|
|
@@ -124,6 +126,7 @@
|
|
|
124
126
|
"react-test-renderer": "19.1.1",
|
|
125
127
|
"remark-gfm": "^4.0.1",
|
|
126
128
|
"storybook": "^10.0.8",
|
|
129
|
+
"styled-components": "^6.3.8",
|
|
127
130
|
"ts-migrate": "^0.1.35",
|
|
128
131
|
"ts-node": "^10.9.2",
|
|
129
132
|
"typescript": "^5.9.3",
|
|
@@ -133,4 +136,4 @@
|
|
|
133
136
|
"jest": {
|
|
134
137
|
"preset": "react-native"
|
|
135
138
|
}
|
|
136
|
-
}
|
|
139
|
+
}
|
|
@@ -1,4 +1,35 @@
|
|
|
1
1
|
{
|
|
2
|
+
"Accordion": {
|
|
3
|
+
"tokens": [
|
|
4
|
+
"accordion/border/color",
|
|
5
|
+
"accordion/content/gap",
|
|
6
|
+
"accordion/content/padding/bottom",
|
|
7
|
+
"accordion/content/padding/top",
|
|
8
|
+
"accordion/header/background",
|
|
9
|
+
"accordion/header/gap",
|
|
10
|
+
"accordion/header/padding/vertical",
|
|
11
|
+
"accordion/icon/color",
|
|
12
|
+
"accordion/icon/size",
|
|
13
|
+
"accordion/title/color",
|
|
14
|
+
"accordion/title/fontFamily",
|
|
15
|
+
"accordion/title/fontSize",
|
|
16
|
+
"accordion/title/lineHeight"
|
|
17
|
+
],
|
|
18
|
+
"collections": {
|
|
19
|
+
"Accordion States": {
|
|
20
|
+
"modes": [
|
|
21
|
+
"Idle",
|
|
22
|
+
"Hover",
|
|
23
|
+
"Open",
|
|
24
|
+
"Open Hover",
|
|
25
|
+
"Disabled"
|
|
26
|
+
],
|
|
27
|
+
"defaultMode": "Idle",
|
|
28
|
+
"hasMultipleModes": true
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
"filePath": "/Users/sunshuaiqi/jfs/react-native-storybook-boilerplate-master/src/components/Accordion/Accordion.tsx"
|
|
32
|
+
},
|
|
2
33
|
"ActionFooter": {
|
|
3
34
|
"tokens": [
|
|
4
35
|
"actionFooter/background",
|
|
@@ -10,6 +41,31 @@
|
|
|
10
41
|
"collections": {},
|
|
11
42
|
"filePath": "/Users/sunshuaiqi/jfs/react-native-storybook-boilerplate-master/src/components/ActionFooter/ActionFooter.tsx"
|
|
12
43
|
},
|
|
44
|
+
"ActionTile": {
|
|
45
|
+
"tokens": [
|
|
46
|
+
"actionTile/background",
|
|
47
|
+
"actionTile/fontFamily",
|
|
48
|
+
"actionTile/fontSize",
|
|
49
|
+
"actionTile/fontWeight",
|
|
50
|
+
"actionTile/foreground",
|
|
51
|
+
"actionTile/gap",
|
|
52
|
+
"actionTile/lineHeight",
|
|
53
|
+
"actionTile/padding/horizontal",
|
|
54
|
+
"actionTile/padding/vertical",
|
|
55
|
+
"actionTile/radius"
|
|
56
|
+
],
|
|
57
|
+
"collections": {
|
|
58
|
+
"Color Mode": {
|
|
59
|
+
"modes": [
|
|
60
|
+
"Light",
|
|
61
|
+
"Dark"
|
|
62
|
+
],
|
|
63
|
+
"defaultMode": "Light",
|
|
64
|
+
"hasMultipleModes": true
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
"filePath": "/Users/sunshuaiqi/jfs/react-native-storybook-boilerplate-master/src/components/ActionTile/ActionTile.tsx"
|
|
68
|
+
},
|
|
13
69
|
"AppBar": {
|
|
14
70
|
"tokens": [
|
|
15
71
|
"appBarActions/actions/gap",
|
|
@@ -317,6 +373,26 @@
|
|
|
317
373
|
},
|
|
318
374
|
"filePath": "/Users/sunshuaiqi/jfs/react-native-storybook-boilerplate-master/src/components/CardFeedback/CardFeedback.tsx"
|
|
319
375
|
},
|
|
376
|
+
"CtaCard": {
|
|
377
|
+
"tokens": [
|
|
378
|
+
"ctaCard/background",
|
|
379
|
+
"ctaCard/body/color",
|
|
380
|
+
"ctaCard/body/fontFamily",
|
|
381
|
+
"ctaCard/body/fontSize",
|
|
382
|
+
"ctaCard/body/lineHeight",
|
|
383
|
+
"ctaCard/content/gap",
|
|
384
|
+
"ctaCard/gap",
|
|
385
|
+
"ctaCard/padding/horizontal",
|
|
386
|
+
"ctaCard/padding/vertical",
|
|
387
|
+
"ctaCard/radius",
|
|
388
|
+
"ctaCard/title/color",
|
|
389
|
+
"ctaCard/title/fontFamily",
|
|
390
|
+
"ctaCard/title/fontSize",
|
|
391
|
+
"ctaCard/title/lineHeight"
|
|
392
|
+
],
|
|
393
|
+
"collections": {},
|
|
394
|
+
"filePath": "/Users/sunshuaiqi/jfs/react-native-storybook-boilerplate-master/src/components/CtaCard/CtaCard.tsx"
|
|
395
|
+
},
|
|
320
396
|
"Disclaimer": {
|
|
321
397
|
"tokens": [
|
|
322
398
|
"disclaimer/color",
|
|
@@ -852,6 +928,29 @@
|
|
|
852
928
|
},
|
|
853
929
|
"filePath": "/Users/sunshuaiqi/jfs/react-native-storybook-boilerplate-master/src/components/TextInput/TextInput.tsx"
|
|
854
930
|
},
|
|
931
|
+
"ThreadHero": {
|
|
932
|
+
"tokens": [
|
|
933
|
+
"threadHero/caption/color",
|
|
934
|
+
"threadHero/caption/fontFamily",
|
|
935
|
+
"threadHero/caption/fontSize",
|
|
936
|
+
"threadHero/caption/fontWeight",
|
|
937
|
+
"threadHero/caption/lineHeight",
|
|
938
|
+
"threadHero/details/gap",
|
|
939
|
+
"threadHero/gap",
|
|
940
|
+
"threadHero/subtitle/color",
|
|
941
|
+
"threadHero/subtitle/fontFamily",
|
|
942
|
+
"threadHero/subtitle/fontSize",
|
|
943
|
+
"threadHero/subtitle/fontWeight",
|
|
944
|
+
"threadHero/subtitle/lineHeight",
|
|
945
|
+
"threadHero/title/color",
|
|
946
|
+
"threadHero/title/fontFamily",
|
|
947
|
+
"threadHero/title/fontSize",
|
|
948
|
+
"threadHero/title/fontWeight",
|
|
949
|
+
"threadHero/title/lineHeight"
|
|
950
|
+
],
|
|
951
|
+
"collections": {},
|
|
952
|
+
"filePath": "/Users/sunshuaiqi/jfs/react-native-storybook-boilerplate-master/src/components/ThreadHero/ThreadHero.tsx"
|
|
953
|
+
},
|
|
855
954
|
"Tooltip": {
|
|
856
955
|
"tokens": [
|
|
857
956
|
"maxWidth",
|
|
@@ -879,6 +978,68 @@
|
|
|
879
978
|
},
|
|
880
979
|
"filePath": "/Users/sunshuaiqi/jfs/react-native-storybook-boilerplate-master/src/components/Tooltip/Tooltip.tsx"
|
|
881
980
|
},
|
|
981
|
+
"TransactionBubble": {
|
|
982
|
+
"tokens": [
|
|
983
|
+
"transactionBubble/background",
|
|
984
|
+
"transactionBubble/border/color",
|
|
985
|
+
"transactionBubble/border/size",
|
|
986
|
+
"transactionBubble/description/color",
|
|
987
|
+
"transactionBubble/description/fontFamily",
|
|
988
|
+
"transactionBubble/description/fontSize",
|
|
989
|
+
"transactionBubble/description/lineHeight",
|
|
990
|
+
"transactionBubble/gap",
|
|
991
|
+
"transactionBubble/padding",
|
|
992
|
+
"transactionBubble/radius",
|
|
993
|
+
"transactionBubble/statusWrap/height"
|
|
994
|
+
],
|
|
995
|
+
"collections": {},
|
|
996
|
+
"filePath": "/Users/sunshuaiqi/jfs/react-native-storybook-boilerplate-master/src/components/TransactionBubble/TransactionBubble.tsx"
|
|
997
|
+
},
|
|
998
|
+
"TransactionDetails": {
|
|
999
|
+
"tokens": [
|
|
1000
|
+
"detailItem/gap",
|
|
1001
|
+
"detailItem/label/color",
|
|
1002
|
+
"detailItem/label/fontFamily",
|
|
1003
|
+
"detailItem/label/fontSize",
|
|
1004
|
+
"detailItem/label/fontWeight",
|
|
1005
|
+
"detailItem/label/lineHeight",
|
|
1006
|
+
"detailItem/value/color",
|
|
1007
|
+
"detailItem/value/fontFamily",
|
|
1008
|
+
"detailItem/value/fontSize",
|
|
1009
|
+
"detailItem/value/fontWeight",
|
|
1010
|
+
"detailItem/value/lineHeight",
|
|
1011
|
+
"transationDetails/gap",
|
|
1012
|
+
"transationDetails/padding/horizontal",
|
|
1013
|
+
"transationDetails/padding/vertical"
|
|
1014
|
+
],
|
|
1015
|
+
"collections": {},
|
|
1016
|
+
"filePath": "/Users/sunshuaiqi/jfs/react-native-storybook-boilerplate-master/src/components/TransactionDetails/TransactionDetails.tsx"
|
|
1017
|
+
},
|
|
1018
|
+
"TransactionStatus": {
|
|
1019
|
+
"tokens": [
|
|
1020
|
+
"transactionBubble/statusWrap/gap",
|
|
1021
|
+
"transactionStatus/color",
|
|
1022
|
+
"transactionStatus/fontFamily",
|
|
1023
|
+
"transactionStatus/fontSize",
|
|
1024
|
+
"transactionStatus/fontWeight2",
|
|
1025
|
+
"transactionStatus/icon/color",
|
|
1026
|
+
"transactionStatus/iconSize",
|
|
1027
|
+
"transactionStatus/lineHeight"
|
|
1028
|
+
],
|
|
1029
|
+
"collections": {
|
|
1030
|
+
"Transaction Status": {
|
|
1031
|
+
"modes": [
|
|
1032
|
+
"Request",
|
|
1033
|
+
"Paid",
|
|
1034
|
+
"Declined",
|
|
1035
|
+
"Expired"
|
|
1036
|
+
],
|
|
1037
|
+
"defaultMode": "Request",
|
|
1038
|
+
"hasMultipleModes": true
|
|
1039
|
+
}
|
|
1040
|
+
},
|
|
1041
|
+
"filePath": "/Users/sunshuaiqi/jfs/react-native-storybook-boilerplate-master/src/components/TransactionStatus/TransactionStatus.tsx"
|
|
1042
|
+
},
|
|
882
1043
|
"UpiHandle": {
|
|
883
1044
|
"tokens": [
|
|
884
1045
|
"upiHandle/background",
|