jfs-components 0.0.56 → 0.0.57
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/TransactionBubble/TransactionBubble.js +24 -20
- package/lib/commonjs/icons/registry.js +1 -1
- package/lib/module/components/TransactionBubble/TransactionBubble.js +24 -20
- package/lib/module/icons/registry.js +1 -1
- package/lib/typescript/src/components/TransactionBubble/TransactionBubble.d.ts +9 -6
- package/lib/typescript/src/icons/registry.d.ts +1 -1
- package/package.json +1 -1
- package/src/components/TransactionBubble/TransactionBubble.tsx +17 -14
- package/src/icons/registry.ts +1 -1
|
@@ -17,16 +17,19 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e
|
|
|
17
17
|
/**
|
|
18
18
|
* TransactionBubble — Figma node 1517:1155.
|
|
19
19
|
*
|
|
20
|
-
* Layout (
|
|
20
|
+
* Layout (vertical stack inside a rounded bordered pill):
|
|
21
21
|
*
|
|
22
22
|
* ┌──────────────────────────────────────────────┐
|
|
23
|
-
* │ Description
|
|
24
|
-
* │ ₹56
|
|
23
|
+
* │ Description │
|
|
24
|
+
* │ ₹56 │
|
|
25
|
+
* │ [slot / children content] │
|
|
26
|
+
* │ ⚠ Expired · 20 Mar 2025 › │
|
|
25
27
|
* └──────────────────────────────────────────────┘
|
|
26
28
|
*
|
|
27
|
-
*
|
|
28
|
-
*
|
|
29
|
-
*
|
|
29
|
+
* moneyValueWrap: description + MoneyValue, vertical with `transactionBubble/wrap/gap`.
|
|
30
|
+
* slotWrap: children (optional), rendered between moneyValueWrap and statusWrap.
|
|
31
|
+
* statusWrap: TransactionStatus + NavArrow, horizontal row with `transactionBubble/statusWrap/gap`.
|
|
32
|
+
* Container gap between sections: `transactionBubble/gap`.
|
|
30
33
|
*/
|
|
31
34
|
function TransactionBubble({
|
|
32
35
|
description = 'Payment to Uber India',
|
|
@@ -54,12 +57,13 @@ function TransactionBubble({
|
|
|
54
57
|
const backgroundColor = (0, _figmaVariablesResolver.getVariableByName)('transactionBubble/background', resolvedModes) || '#ffffff';
|
|
55
58
|
const borderColor = (0, _figmaVariablesResolver.getVariableByName)('transactionBubble/border/color', resolvedModes) || '#e5e5e5';
|
|
56
59
|
const bubbleGap = Number((0, _figmaVariablesResolver.getVariableByName)('transactionBubble/gap', resolvedModes)) || 8;
|
|
57
|
-
const
|
|
60
|
+
const moneyValueWrapGap = Number((0, _figmaVariablesResolver.getVariableByName)('transactionBubble/wrap/gap', resolvedModes)) || 8;
|
|
58
61
|
const descriptionColor = (0, _figmaVariablesResolver.getVariableByName)('transactionBubble/description/color', resolvedModes) || '#24262b';
|
|
59
62
|
const descriptionFontSize = Number((0, _figmaVariablesResolver.getVariableByName)('transactionBubble/description/fontSize', resolvedModes)) || 14;
|
|
60
63
|
const descriptionLineHeight = Number((0, _figmaVariablesResolver.getVariableByName)('transactionBubble/description/lineHeight', resolvedModes)) || 17;
|
|
61
64
|
const descriptionFontFamily = (0, _figmaVariablesResolver.getVariableByName)('transactionBubble/description/fontFamily', resolvedModes) || 'JioType Var';
|
|
62
65
|
const statusWrapGap = Number((0, _figmaVariablesResolver.getVariableByName)('transactionBubble/statusWrap/gap', resolvedModes)) || 4;
|
|
66
|
+
const statusWrapHeight = Number((0, _figmaVariablesResolver.getVariableByName)('transactionBubble/statusWrap/height', resolvedModes)) || 18;
|
|
63
67
|
const containerStyle = {
|
|
64
68
|
padding,
|
|
65
69
|
borderRadius: radius,
|
|
@@ -83,11 +87,13 @@ function TransactionBubble({
|
|
|
83
87
|
accessibilityLabel: defaultAccessibilityLabel,
|
|
84
88
|
webAccessibilityProps
|
|
85
89
|
});
|
|
86
|
-
const
|
|
90
|
+
const statusRow = processedStatusSlot || /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
87
91
|
style: {
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
92
|
+
flexDirection: 'row',
|
|
93
|
+
alignItems: 'center',
|
|
94
|
+
justifyContent: 'space-between',
|
|
95
|
+
gap: statusWrapGap,
|
|
96
|
+
height: statusWrapHeight
|
|
91
97
|
},
|
|
92
98
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_TransactionStatus.default, {
|
|
93
99
|
status: status,
|
|
@@ -100,13 +106,11 @@ function TransactionBubble({
|
|
|
100
106
|
});
|
|
101
107
|
const mainContent = /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
102
108
|
style: {
|
|
103
|
-
|
|
104
|
-
gap: wrapGap
|
|
109
|
+
gap: bubbleGap
|
|
105
110
|
},
|
|
106
111
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
107
112
|
style: {
|
|
108
|
-
|
|
109
|
-
gap: bubbleGap
|
|
113
|
+
gap: moneyValueWrapGap
|
|
110
114
|
},
|
|
111
115
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
112
116
|
style: descriptionStyle,
|
|
@@ -117,10 +121,10 @@ function TransactionBubble({
|
|
|
117
121
|
currency: currency,
|
|
118
122
|
modes: resolvedModes
|
|
119
123
|
})]
|
|
120
|
-
}),
|
|
124
|
+
}), processedChildren, statusRow]
|
|
121
125
|
});
|
|
122
126
|
if (onPress) {
|
|
123
|
-
return /*#__PURE__*/(0, _jsxRuntime.
|
|
127
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Pressable, {
|
|
124
128
|
onPress: onPress,
|
|
125
129
|
style: ({
|
|
126
130
|
pressed
|
|
@@ -132,14 +136,14 @@ function TransactionBubble({
|
|
|
132
136
|
accessibilityHint: accessibilityHint,
|
|
133
137
|
...webProps,
|
|
134
138
|
...rest,
|
|
135
|
-
children:
|
|
139
|
+
children: mainContent
|
|
136
140
|
});
|
|
137
141
|
}
|
|
138
|
-
return /*#__PURE__*/(0, _jsxRuntime.
|
|
142
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
139
143
|
style: [containerStyle, style],
|
|
140
144
|
accessibilityLabel: defaultAccessibilityLabel,
|
|
141
145
|
accessibilityHint: accessibilityHint,
|
|
142
|
-
children:
|
|
146
|
+
children: mainContent
|
|
143
147
|
});
|
|
144
148
|
}
|
|
145
149
|
var _default = exports.default = TransactionBubble;
|