jfs-components 0.0.53 → 0.0.54

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-13T10:56:51.920Z
7
+ * Generated: 2026-04-13T20:33:05.821Z
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.53",
3
+ "version": "0.0.54",
4
4
  "description": "React Native Jio Finance Components Library",
5
5
  "author": "sunshuaiqi@gmail.com",
6
6
  "license": "MIT",
@@ -1,5 +1,5 @@
1
1
  import React, { useCallback, useEffect, useState, useRef } from 'react'
2
- import { StyleSheet, Text, useWindowDimensions, View } from 'react-native'
2
+ import { Platform, StyleSheet, Text, useWindowDimensions, View } from 'react-native'
3
3
  import {
4
4
  Gesture,
5
5
  GestureDetector,
@@ -314,7 +314,7 @@ function Drawer({
314
314
  animatedStyle,
315
315
  ]}
316
316
  accessible={true}
317
- accessibilityRole={'dialog' as any}
317
+ {...(Platform.OS === 'web' ? { accessibilityRole: 'dialog' as any } : undefined)}
318
318
  accessibilityLabel={undefined}
319
319
  accessibilityHint={accessibilityHint || 'Swipe up to expand, swipe down to collapse'}
320
320
  >
@@ -1,5 +1,5 @@
1
1
  import React, { useState } from 'react'
2
- import { View, Text, Pressable, type StyleProp, type ViewStyle, type PressableStateCallbackType } from 'react-native'
2
+ import { View, Text, Pressable, Platform, type StyleProp, type ViewStyle, type PressableStateCallbackType } from 'react-native'
3
3
  import { getVariableByName } from '../../design-tokens/figma-variables-resolver'
4
4
  import NavArrow from '../NavArrow/NavArrow'
5
5
  import { usePressableWebSupport, type WebAccessibilityProps } from '../../utils/web-platform-utils'
@@ -182,7 +182,7 @@ function Section({
182
182
  return (
183
183
  <View
184
184
  style={[containerStyle, style]}
185
- accessibilityRole={'region' as any}
185
+ {...(Platform.OS === 'web' ? { accessibilityRole: 'region' as any } : undefined)}
186
186
  accessibilityLabel={undefined}
187
187
  accessibilityHint={accessibilityHint}
188
188
  {...rest}
@@ -314,7 +314,7 @@ function SectionBento({
314
314
  return (
315
315
  <View
316
316
  style={[containerStyle, style]}
317
- accessibilityRole={'region' as any}
317
+ {...(Platform.OS === 'web' ? { accessibilityRole: 'region' as any } : undefined)}
318
318
  accessibilityLabel={undefined}
319
319
  accessibilityHint={accessibilityHint}
320
320
  {...rest}
@@ -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-13T10:56:51.920Z
7
+ * Generated: 2026-04-13T20:33:05.821Z
8
8
  */
9
9
 
10
10
  // Icon name to SVG data mapping