dhre-ui-kit 0.0.273 → 0.0.274

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
@@ -659,10 +659,13 @@ const BottomDrawer = ({
659
659
  blurType = "light",
660
660
  showSeparator = true
661
661
  }) => {
662
+ const [isSwiping, setIsSwiping] = useState(false);
662
663
  const onSwipDown = (event) => {
663
664
  const { translationY } = event.nativeEvent;
664
- if (translationY > 50) {
665
+ if (translationY > 50 && !isSwiping) {
666
+ setIsSwiping(true);
665
667
  toggleModal();
668
+ setIsSwiping(false);
666
669
  }
667
670
  };
668
671
  return /* @__PURE__ */ React.createElement(
@@ -3759,12 +3762,18 @@ const TagsComponent = ({
3759
3762
  CustomText$1,
3760
3763
  {
3761
3764
  textColor: selectedTag === item?.name ? Theme.CONTENT_INVERTED : Theme.CONTENT_SECONDRY,
3762
- text: item?.name,
3763
- variant: FontStyle.L2_REGULAR
3764
- },
3765
- item?.name
3765
+ variant: FontStyle.L2_REGULAR,
3766
+ text: item?.name
3767
+ }
3766
3768
  )),
3767
- /* @__PURE__ */ React.createElement(View, { style: styles.circleViewAlignment }, selectedTag === item?.name && /* @__PURE__ */ React.createElement(Text, { style: styles.closeButton }, "\u2715"))
3769
+ /* @__PURE__ */ React.createElement(View, { style: styles.circleViewAlignment }, selectedTag === item?.name && /* @__PURE__ */ React.createElement(
3770
+ CustomText$1,
3771
+ {
3772
+ text: "x",
3773
+ variant: FontStyle.L2_REGULAR,
3774
+ style: styles.closeButton
3775
+ }
3776
+ ))
3768
3777
  );
3769
3778
  return /* @__PURE__ */ React.createElement(View, null, /* @__PURE__ */ React.createElement(
3770
3779
  FlatList,
@@ -3804,8 +3813,9 @@ const createStyles = (theme) => {
3804
3813
  },
3805
3814
  closeButton: {
3806
3815
  marginLeft: 10,
3807
- fontSize: 14,
3808
- color: theme.BORDER_SECONDRY
3816
+ // fontSize: 18,
3817
+ color: theme.BORDER_SECONDRY,
3818
+ alignSelf: "center"
3809
3819
  },
3810
3820
  circleViewAlignment: {
3811
3821
  justifyContent: "center",