jfs-components 0.0.51 → 0.0.53

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.
@@ -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-04-13T09:35:42.837Z
7
+ * Generated: 2026-04-13T10:56:51.920Z
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.51",
3
+ "version": "0.0.53",
4
4
  "description": "React Native Jio Finance Components Library",
5
5
  "author": "sunshuaiqi@gmail.com",
6
6
  "license": "MIT",
@@ -88,22 +88,24 @@ function ListItem({
88
88
  webAccessibilityProps,
89
89
  ...rest
90
90
  }: ListItemProps) {
91
+ const resolvedModes = { ...modes, "Context": "ListItem" }
92
+
91
93
  // Resolve container spacing tokens
92
- const gap = getVariableByName('listItem/gap', modes) ?? 8
93
- const paddingTop = getVariableByName('listItem/padding/top', modes) ?? 0
94
- const paddingBottom = getVariableByName('listItem/padding/bottom', modes) ?? 0
95
- const paddingLeft = getVariableByName('listItem/padding/left', modes) ?? 0
96
- const paddingRight = getVariableByName('listItem/padding/right', modes) ?? 0
97
- const textWrapGap = getVariableByName('listItem/text wrap', modes) ?? 0
94
+ const gap = getVariableByName('listItem/gap', resolvedModes) ?? 8
95
+ const paddingTop = getVariableByName('listItem/padding/top', resolvedModes) ?? 0
96
+ const paddingBottom = getVariableByName('listItem/padding/bottom', resolvedModes) ?? 0
97
+ const paddingLeft = getVariableByName('listItem/padding/left', resolvedModes) ?? 0
98
+ const paddingRight = getVariableByName('listItem/padding/right', resolvedModes) ?? 0
99
+ const textWrapGap = getVariableByName('listItem/text wrap', resolvedModes) ?? 0
98
100
 
99
101
  // Title typography (horizontal layout)
100
- const titleColor = getVariableByName('listItem/title/color', modes) || '#0f0d0a'
101
- const titleFontSize = getVariableByName('listItem/title/fontSize', modes) || 14
102
- const titleLineHeight = getVariableByName('listItem/title/lineHeight', modes) || 16
102
+ const titleColor = getVariableByName('listItem/title/color', resolvedModes) || '#0f0d0a'
103
+ const titleFontSize = getVariableByName('listItem/title/fontSize', resolvedModes) || 14
104
+ const titleLineHeight = getVariableByName('listItem/title/lineHeight', resolvedModes) || 16
103
105
  const titleFontFamily =
104
- getVariableByName('listItem/title/fontFamily', modes) || 'System'
106
+ getVariableByName('listItem/title/fontFamily', resolvedModes) || 'System'
105
107
  const titleFontWeightRaw =
106
- getVariableByName('listItem/title/fontWeight', modes) || 700
108
+ getVariableByName('listItem/title/fontWeight', resolvedModes) || 700
107
109
  const titleFontWeight =
108
110
  typeof titleFontWeightRaw === 'number'
109
111
  ? titleFontWeightRaw.toString()
@@ -111,15 +113,15 @@ function ListItem({
111
113
 
112
114
  // Support text typography (used in both layouts)
113
115
  const supportColor =
114
- getVariableByName('listItem/supportText/color', modes) || '#1f1a14'
116
+ getVariableByName('listItem/supportText/color', resolvedModes) || '#1f1a14'
115
117
  const supportFontSize =
116
- getVariableByName('listItem/supportText/fontSize', modes) || 12
118
+ getVariableByName('listItem/supportText/fontSize', resolvedModes) || 12
117
119
  const supportLineHeight =
118
- getVariableByName('listItem/supportText/lineHeight', modes) || 14
120
+ getVariableByName('listItem/supportText/lineHeight', resolvedModes) || 14
119
121
  const supportFontFamily =
120
- getVariableByName('listItem/supportText/fontFamily', modes) || 'System'
122
+ getVariableByName('listItem/supportText/fontFamily', resolvedModes) || 'System'
121
123
  const supportFontWeightRaw =
122
- getVariableByName('listItem/supportText/fontWeight', modes) || 500
124
+ getVariableByName('listItem/supportText/fontWeight', resolvedModes) || 500
123
125
  const supportFontWeight =
124
126
  typeof supportFontWeightRaw === 'number'
125
127
  ? supportFontWeightRaw.toString()
@@ -204,7 +206,7 @@ function ListItem({
204
206
 
205
207
  // Process leading slot to pass modes to children
206
208
  const processedLeading = leading
207
- ? cloneChildrenWithModes(React.Children.toArray(leading), modes)
209
+ ? cloneChildrenWithModes(React.Children.toArray(leading), resolvedModes)
208
210
  : []
209
211
  // Extract single element if array has one element, otherwise use array
210
212
  const leadingElement =
@@ -212,14 +214,14 @@ function ListItem({
212
214
  ? processedLeading.length === 1
213
215
  ? processedLeading[0]
214
216
  : processedLeading
215
- : <IconCapsule modes={modes} accessibilityLabel={undefined} />
217
+ : <IconCapsule modes={resolvedModes} accessibilityLabel={undefined} />
216
218
 
217
219
  const renderSupportContent = () => {
218
220
  if (supportSlot) {
219
221
  // Process supportSlot to pass modes to children
220
222
  const processedSupportSlot = cloneChildrenWithModes(
221
223
  React.Children.toArray(supportSlot),
222
- modes
224
+ resolvedModes
223
225
  )
224
226
  // Extract single element if array has one element, otherwise use array
225
227
  return processedSupportSlot.length === 1
@@ -251,7 +253,7 @@ function ListItem({
251
253
  // Process endSlot to pass modes to children
252
254
  // Force Context: 'ListItem' - this value can never be overridden by external modes
253
255
  const processedEndSlot = endSlot
254
- ? cloneChildrenWithModes(React.Children.toArray(endSlot), modes, { "Context": 'ListItem' })
256
+ ? cloneChildrenWithModes(React.Children.toArray(endSlot), resolvedModes, { "Context": 'ListItem' })
255
257
  : []
256
258
  // Extract single element if array has one element, otherwise use array
257
259
  const trailingContent =
@@ -284,7 +286,7 @@ function ListItem({
284
286
  {trailingContent ? (
285
287
  <View style={trailingWrapperStyle}>{trailingContent}</View>
286
288
  ) : null}
287
- {navArrow && <NavArrow direction="Forward" modes={modes} />}
289
+ {navArrow && <NavArrow direction="Forward" modes={resolvedModes} />}
288
290
  </View>
289
291
  )
290
292
 
@@ -69,7 +69,7 @@ function Section({
69
69
  const headerPressedStyle: ViewStyle = isHeaderPressed ? { opacity: 0.85 } : {}
70
70
  // Resolve section container tokens
71
71
  const backgroundColor = getVariableByName('section/background/color', modes) || '#ffffff'
72
- const gap = getVariableByName('section/gap', modes) || 12
72
+ const gap = getVariableByName('slot/gap', modes) || 12
73
73
  const paddingHorizontal = getVariableByName('section/padding/horizontal', modes) || 12
74
74
  const paddingVertical = getVariableByName('section/padding/vertical', modes) || 16
75
75
  const radius = getVariableByName('section/radius', modes) || 12