dhre-ui-kit 0.0.136 → 0.0.137

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/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import React, { createContext, useContext, useState, useEffect, useRef, memo, useCallback } from 'react';
2
2
  import { useSelector } from 'react-redux';
3
- import { Dimensions, Text, StyleSheet, Pressable, View, Modal, KeyboardAvoidingView, Platform, TextInput, ScrollView, Animated, FlatList, ActivityIndicator, TouchableOpacity, Alert, Linking, PanResponder } from 'react-native';
3
+ import { Dimensions, StyleSheet, Text, Pressable, View, Modal, KeyboardAvoidingView, Platform, TextInput, ScrollView, Animated, FlatList, ActivityIndicator, TouchableOpacity, Alert, Linking, PanResponder } from 'react-native';
4
4
  import { PanGestureHandler, GestureHandlerRootView, Swipeable } from 'react-native-gesture-handler';
5
5
  import { BlurView } from '@react-native-community/blur';
6
6
  import Tooltip from 'rn-tooltip';
@@ -324,8 +324,19 @@ const CustomTypography = ({
324
324
  ...props
325
325
  }) => {
326
326
  const textStyle = FONT_STYLES[variant];
327
- return /* @__PURE__ */ React.createElement(Text, { testID, style: [textStyle, style], ...props }, text);
327
+ return /* @__PURE__ */ React.createElement(
328
+ Text,
329
+ {
330
+ testID,
331
+ style: [textStyle, styles$F.container, style],
332
+ ...props
333
+ },
334
+ text
335
+ );
328
336
  };
337
+ const styles$F = StyleSheet.create({
338
+ container: { writingDirection: "auto", alignSelf: "flex-start" }
339
+ });
329
340
 
330
341
  const CustomText = ({
331
342
  text,
@@ -2694,7 +2705,7 @@ const styles$f = StyleSheet.create({
2694
2705
  });
2695
2706
 
2696
2707
  const DateRangePicker = (props) => {
2697
- const { onButtonPress } = props;
2708
+ const { onButtonPress, btnTitle = "Apply" } = props;
2698
2709
  const [selectedRange, setSelectedRange] = useState({
2699
2710
  startDate: "",
2700
2711
  endDate: ""
@@ -2767,7 +2778,7 @@ const DateRangePicker = (props) => {
2767
2778
  ), /* @__PURE__ */ React.createElement(
2768
2779
  CustomButton$1,
2769
2780
  {
2770
- title: "Apply",
2781
+ title: btnTitle,
2771
2782
  onPress: () => {
2772
2783
  onButtonPress(selectedRange?.startDate, selectedRange?.endDate);
2773
2784
  },
@@ -2775,7 +2786,7 @@ const DateRangePicker = (props) => {
2775
2786
  ...styles$f.applyButton,
2776
2787
  backgroundColor: theme.SURFACE_INVERTED
2777
2788
  },
2778
- textStyle: { color: theme.CONTENT_PRIMARY },
2789
+ textStyle: { color: theme.CONTENT_INVERTED },
2779
2790
  disabled: isButtonDisabled
2780
2791
  }
2781
2792
  ));