dhre-ui-kit 0.0.272 → 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.d.ts +1 -0
- package/lib/index.js +22 -10
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +22 -10
- package/lib/index.mjs.map +1 -1
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
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(
|
|
@@ -3063,7 +3066,8 @@ const ScrollableList = ({
|
|
|
3063
3066
|
selectedItemTextColor = "CONTENT_PRIMARY",
|
|
3064
3067
|
defaultItemTextColor = "CONTENT_SECONDRY",
|
|
3065
3068
|
activeTab,
|
|
3066
|
-
errorStyle
|
|
3069
|
+
errorStyle,
|
|
3070
|
+
activeTextStyle
|
|
3067
3071
|
}) => {
|
|
3068
3072
|
const [selectedItem, setSelectedItem] = React.useState(
|
|
3069
3073
|
data && data.length > 0 ? data[0].name : null
|
|
@@ -3102,7 +3106,8 @@ const ScrollableList = ({
|
|
|
3102
3106
|
{
|
|
3103
3107
|
text: item.name,
|
|
3104
3108
|
variant: "L1_REGULAR",
|
|
3105
|
-
textColor: (activeTab ?? selectedItem) === item.name ? selectedItemTextColor : defaultItemTextColor
|
|
3109
|
+
textColor: (activeTab ?? selectedItem) === item.name ? selectedItemTextColor : defaultItemTextColor,
|
|
3110
|
+
style: (activeTab ?? selectedItem) === item.name ? activeTextStyle ? activeTextStyle : {} : {}
|
|
3106
3111
|
}
|
|
3107
3112
|
),
|
|
3108
3113
|
item?.isError ? /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: [styles.errorViewStyle, errorStyle] }, item?.errorText ? /* @__PURE__ */ React__default["default"].createElement(
|
|
@@ -3793,12 +3798,18 @@ const TagsComponent = ({
|
|
|
3793
3798
|
CustomText$1,
|
|
3794
3799
|
{
|
|
3795
3800
|
textColor: selectedTag === item?.name ? Theme.CONTENT_INVERTED : Theme.CONTENT_SECONDRY,
|
|
3796
|
-
|
|
3797
|
-
|
|
3798
|
-
}
|
|
3799
|
-
item?.name
|
|
3801
|
+
variant: FontStyle.L2_REGULAR,
|
|
3802
|
+
text: item?.name
|
|
3803
|
+
}
|
|
3800
3804
|
)),
|
|
3801
|
-
/* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles.circleViewAlignment }, selectedTag === item?.name && /* @__PURE__ */ React__default["default"].createElement(
|
|
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
|
+
))
|
|
3802
3813
|
);
|
|
3803
3814
|
return /* @__PURE__ */ React__default["default"].createElement(reactNative.View, null, /* @__PURE__ */ React__default["default"].createElement(
|
|
3804
3815
|
reactNative.FlatList,
|
|
@@ -3838,8 +3849,9 @@ const createStyles = (theme) => {
|
|
|
3838
3849
|
},
|
|
3839
3850
|
closeButton: {
|
|
3840
3851
|
marginLeft: 10,
|
|
3841
|
-
fontSize:
|
|
3842
|
-
color: theme.BORDER_SECONDRY
|
|
3852
|
+
// fontSize: 18,
|
|
3853
|
+
color: theme.BORDER_SECONDRY,
|
|
3854
|
+
alignSelf: "center"
|
|
3843
3855
|
},
|
|
3844
3856
|
circleViewAlignment: {
|
|
3845
3857
|
justifyContent: "center",
|