dhre-ui-kit 0.0.281 → 0.0.283

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,8 +1,8 @@
1
1
  import React, { createContext, useContext, useState, useEffect, useRef, memo, useCallback } from 'react';
2
2
  import { useSelector } from 'react-redux';
3
- import { Dimensions, StyleSheet, Text, Pressable, View, KeyboardAvoidingView, Platform, TextInput, ScrollView, Animated, FlatList, TouchableOpacity, Modal as Modal$1, Alert, Linking, PanResponder } from 'react-native';
4
- import { BlurView } from '@react-native-community/blur';
3
+ import { Dimensions, StyleSheet, Text, Pressable, View, Platform, KeyboardAvoidingView, TextInput, ScrollView, Animated, FlatList, TouchableOpacity, Modal as Modal$1, Alert, Linking, PanResponder } from 'react-native';
5
4
  import Modal from 'react-native-modal';
5
+ import Clipboard from '@react-native-clipboard/clipboard';
6
6
  import LottieView from 'lottie-react-native';
7
7
  import Tooltip from 'react-native-walkthrough-tooltip';
8
8
  import Pdf from 'react-native-pdf';
@@ -16,7 +16,6 @@ import { Dropdown } from 'react-native-element-dropdown';
16
16
  import DocumentPicker from 'react-native-document-picker';
17
17
  import RNFS from 'react-native-fs';
18
18
  import OTPVerify, { removeListener, startOtpListener } from 'react-native-otp-verify';
19
- import Clipboard from '@react-native-clipboard/clipboard';
20
19
 
21
20
  var ShapeType = /* @__PURE__ */ ((ShapeType2) => {
22
21
  ShapeType2["LINE"] = "line";
@@ -638,6 +637,11 @@ const styles$z = StyleSheet.create({
638
637
  rightIconStyle: { marginLeft: 8 }
639
638
  });
640
639
 
640
+ const isIos = () => Platform.OS === "ios" /* ios */;
641
+ const copyToClipboard = (textToCopy) => {
642
+ Clipboard.setString(textToCopy);
643
+ };
644
+
641
645
  const BottomDrawer = ({
642
646
  isModalVisible,
643
647
  toggleModal,
@@ -646,9 +650,6 @@ const BottomDrawer = ({
646
650
  testID = "BOTTOM-DRAWER",
647
651
  style,
648
652
  modalContainerStyle,
649
- blurAmount = 10,
650
- blurViewStyle,
651
- showBlurView = true,
652
653
  showLeftIcon = false,
653
654
  showRightIcon = true,
654
655
  leftIcon,
@@ -657,31 +658,27 @@ const BottomDrawer = ({
657
658
  titleStyle,
658
659
  titleVariant = "B2_REGULAR",
659
660
  showHeader = true,
660
- blurType,
661
- showSeparator = true
661
+ showSeparator = true,
662
+ showBlurView
662
663
  }) => {
664
+ const { theme } = useTheme();
663
665
  return /* @__PURE__ */ React.createElement(
664
666
  Modal,
665
667
  {
666
668
  isVisible: isModalVisible,
667
669
  swipeDirection: "down",
668
670
  onSwipeComplete: toggleModal,
671
+ backdropColor: theme.SURFACE_PRIMARY,
672
+ hasBackdrop: showBlurView,
669
673
  style: { margin: 0 }
670
674
  },
671
675
  /* @__PURE__ */ React.createElement(
672
676
  KeyboardAvoidingView,
673
677
  {
674
- behavior: Platform.OS === "ios" ? "padding" : "height",
678
+ behavior: isIos() ? "padding" : "height",
675
679
  style: { flex: 1 }
676
680
  },
677
- /* @__PURE__ */ React.createElement(View, { style: [styles$z.mainContainer, style], testID }, showBlurView ? /* @__PURE__ */ React.createElement(
678
- BlurView,
679
- {
680
- style: [styles$z.blurView, blurViewStyle],
681
- blurType,
682
- blurAmount
683
- }
684
- ) : null, /* @__PURE__ */ React.createElement(View, { style: [styles$z.modalContainer, modalContainerStyle] }, showHeader && /* @__PURE__ */ React.createElement(React.Fragment, null, showSeparator && /* @__PURE__ */ React.createElement(View, { style: styles$z.separator }), /* @__PURE__ */ React.createElement(View, { style: styles$z.headerContainer }, showLeftIcon && leftIcon ? React.cloneElement(leftIcon, {
681
+ /* @__PURE__ */ React.createElement(View, { style: [styles$z.mainContainer, style], testID }, /* @__PURE__ */ React.createElement(View, { style: [styles$z.modalContainer, modalContainerStyle] }, showHeader && /* @__PURE__ */ React.createElement(React.Fragment, null, showSeparator && /* @__PURE__ */ React.createElement(View, { style: styles$z.separator }), /* @__PURE__ */ React.createElement(View, { style: styles$z.headerContainer }, showLeftIcon && leftIcon ? React.cloneElement(leftIcon, {
685
682
  width: moderateScale(24),
686
683
  height: moderateScale(24),
687
684
  style: styles$z.leftIconStyle,
@@ -702,6 +699,7 @@ const BottomDrawer = ({
702
699
  )
703
700
  );
704
701
  };
702
+ var BottomDrawer$1 = withThemeProvider(BottomDrawer);
705
703
 
706
704
  const createStyles$3 = (theme) => {
707
705
  return StyleSheet.create({
@@ -4539,10 +4537,6 @@ const CustomSlideButton = React.forwardRef(
4539
4537
  );
4540
4538
  var index$2 = withThemeProvider(CustomSlideButton);
4541
4539
 
4542
- const copyToClipboard = (textToCopy) => {
4543
- Clipboard.setString(textToCopy);
4544
- };
4545
-
4546
4540
  const styles$2 = StyleSheet.create({
4547
4541
  accordionContainer: {
4548
4542
  gap: verticalScale(8),
@@ -4925,5 +4919,5 @@ const RadioButtonGroup = ({ data, onSelect, containerStyle, labelStyle, optionCo
4925
4919
  )));
4926
4920
  };
4927
4921
 
4928
- export { Accordion$1 as Accordion, index$1 as AppointmentCard, Badge$1 as Badge, BottomDrawer, CustomButton$1 as Button, Cards, category as Category, Checkbox as CheckBox, ContactModel, CountryDropDown as CountryPicker, CustomDocumentPicker$1 as CustomDocumentPicker, CustomDropdown$1 as CustomDropdown, CustomHeader$1 as CustomHeader, CustomIcon, CustomLoader$1 as CustomLoader, CustomProgressBar, CustomSearchBar, index$2 as CustomSlideButton, CustomSwitchBtn, CustomText$1 as CustomText, CustomTextInput, CustomTooltip, CustomTypography, DHRE_COLORS_ALERT, DHRE_COLORS_BG, DHRE_COLORS_PRIMARY, DHRE_COLORS_SECONDARY, DHRE_COLORS_TEXT, DHRE_DEFAULT, DateRangePicker$1 as DateRangePicker, CustomDropdown as DropDown, FONT_STYLES, feedback as FeedbackForm, FileUpload, FontStyle, Line, NotificationBandge, OTPInput, OurOffices as OurOfficesButton, PdfView, PopUp, index as PropertyDetails, RadioButtonGroup, ShapeType, TagSingleSelection as SingleSelectionTags, Star as StarRating, index$3 as Stepper, SwipableList$1 as SwipableList, Tabs$1 as Tabs, Tags, TextDirectType, CommonTextInput as TextInput, Theme, Toast, CustomSwitch as ToggleButton, ToggleButtonType, ToggleTextType, Topic$1 as Topic, copyToClipboard, theme as default, height, horizontalScale, moderateScale, toastService, verticalScale, width };
4922
+ export { Accordion$1 as Accordion, index$1 as AppointmentCard, Badge$1 as Badge, BottomDrawer$1 as BottomDrawer, CustomButton$1 as Button, Cards, category as Category, Checkbox as CheckBox, ContactModel, CountryDropDown as CountryPicker, CustomDocumentPicker$1 as CustomDocumentPicker, CustomDropdown$1 as CustomDropdown, CustomHeader$1 as CustomHeader, CustomIcon, CustomLoader$1 as CustomLoader, CustomProgressBar, CustomSearchBar, index$2 as CustomSlideButton, CustomSwitchBtn, CustomText$1 as CustomText, CustomTextInput, CustomTooltip, CustomTypography, DHRE_COLORS_ALERT, DHRE_COLORS_BG, DHRE_COLORS_PRIMARY, DHRE_COLORS_SECONDARY, DHRE_COLORS_TEXT, DHRE_DEFAULT, DateRangePicker$1 as DateRangePicker, CustomDropdown as DropDown, FONT_STYLES, feedback as FeedbackForm, FileUpload, FontStyle, Line, NotificationBandge, OTPInput, OurOffices as OurOfficesButton, PdfView, PopUp, index as PropertyDetails, RadioButtonGroup, ShapeType, TagSingleSelection as SingleSelectionTags, Star as StarRating, index$3 as Stepper, SwipableList$1 as SwipableList, Tabs$1 as Tabs, Tags, TextDirectType, CommonTextInput as TextInput, Theme, Toast, CustomSwitch as ToggleButton, ToggleButtonType, ToggleTextType, Topic$1 as Topic, copyToClipboard, theme as default, height, horizontalScale, moderateScale, toastService, verticalScale, width };
4929
4923
  //# sourceMappingURL=index.mjs.map