jfs-components 0.1.58 → 0.1.59

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-07-27T21:47:09.131Z
7
+ * Generated: 2026-07-27T22:22:57.898Z
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.1.58",
3
+ "version": "0.1.59",
4
4
  "description": "React Native Jio Finance Components Library",
5
5
  "author": "sunshuaiqi@gmail.com",
6
6
  "license": "MIT",
@@ -65,6 +65,15 @@ export type CardFinancialConditionProps = CardFinancialConditionBaseProps & {
65
65
  accessibilityLabel?: string
66
66
  }
67
67
 
68
+ // Match the Figma source defaults: Neutral brand, Nudge&Alert context, and
69
+ // no nudge padding. Caller / global modes merge on top so any key can still
70
+ // be overridden per-instance.
71
+ const COMPONENT_DEFAULT_MODES: Readonly<Record<string, string>> = Object.freeze({
72
+ AppearanceBrand: 'Neutral',
73
+ Context: 'Nudge&Alert',
74
+ 'Nudge padding': 'None',
75
+ })
76
+
68
77
  interface CardFinancialConditionTokens {
69
78
  containerStyle: ViewStyle
70
79
  headerStyle: ViewStyle
@@ -263,11 +272,12 @@ function CardFinancialCondition({
263
272
  ...rest
264
273
  }: CardFinancialConditionProps) {
265
274
  const { modes: globalModes } = useTokens()
275
+ // Merge order: component defaults → global theme → caller props.
266
276
  const modes = useMemo(
267
277
  () =>
268
278
  globalModes === EMPTY_MODES && propModes === EMPTY_MODES
269
- ? EMPTY_MODES
270
- : { ...globalModes, ...propModes },
279
+ ? COMPONENT_DEFAULT_MODES
280
+ : { ...COMPONENT_DEFAULT_MODES, ...globalModes, ...propModes },
271
281
  [globalModes, propModes]
272
282
  )
273
283
 
@@ -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-07-27T21:47:09.131Z
7
+ * Generated: 2026-07-27T22:22:57.898Z
8
8
  */
9
9
 
10
10
  // Icon name to SVG data mapping