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.js CHANGED
@@ -695,10 +695,13 @@ const BottomDrawer = ({
695
695
  blurType = "light",
696
696
  showSeparator = true
697
697
  }) => {
698
+ const [isSwiping, setIsSwiping] = React.useState(false);
698
699
  const onSwipDown = (event) => {
699
700
  const { translationY } = event.nativeEvent;
700
- if (translationY > 50) {
701
+ if (translationY > 50 && !isSwiping) {
702
+ setIsSwiping(true);
701
703
  toggleModal();
704
+ setIsSwiping(false);
702
705
  }
703
706
  };
704
707
  return /* @__PURE__ */ React__default["default"].createElement(
@@ -3795,12 +3798,18 @@ const TagsComponent = ({
3795
3798
  CustomText$1,
3796
3799
  {
3797
3800
  textColor: selectedTag === item?.name ? Theme.CONTENT_INVERTED : Theme.CONTENT_SECONDRY,
3798
- text: item?.name,
3799
- variant: FontStyle.L2_REGULAR
3800
- },
3801
- item?.name
3801
+ variant: FontStyle.L2_REGULAR,
3802
+ text: item?.name
3803
+ }
3802
3804
  )),
3803
- /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles.circleViewAlignment }, selectedTag === item?.name && /* @__PURE__ */ React__default["default"].createElement(reactNative.Text, { style: styles.closeButton }, "\u2715"))
3805
+ /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles.circleViewAlignment }, selectedTag === item?.name && /* @__PURE__ */ React__default["default"].createElement(
3806
+ CustomText$1,
3807
+ {
3808
+ text: "x",
3809
+ variant: FontStyle.L2_REGULAR,
3810
+ style: styles.closeButton
3811
+ }
3812
+ ))
3804
3813
  );
3805
3814
  return /* @__PURE__ */ React__default["default"].createElement(reactNative.View, null, /* @__PURE__ */ React__default["default"].createElement(
3806
3815
  reactNative.FlatList,
@@ -3840,8 +3849,9 @@ const createStyles = (theme) => {
3840
3849
  },
3841
3850
  closeButton: {
3842
3851
  marginLeft: 10,
3843
- fontSize: 14,
3844
- color: theme.BORDER_SECONDRY
3852
+ // fontSize: 18,
3853
+ color: theme.BORDER_SECONDRY,
3854
+ alignSelf: "center"
3845
3855
  },
3846
3856
  circleViewAlignment: {
3847
3857
  justifyContent: "center",