dhre-ui-kit 2.0.19 → 2.0.21
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/components/dropDown/DropDown.d.ts +1 -0
- package/lib/index.js +10 -9
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +10 -9
- package/lib/index.mjs.map +1 -1
- package/package.json +1 -1
package/lib/index.mjs
CHANGED
|
@@ -748,11 +748,11 @@ const BottomDrawer = ({
|
|
|
748
748
|
behavior: isIos() ? "padding" : "height",
|
|
749
749
|
style: { flex: 1 }
|
|
750
750
|
},
|
|
751
|
-
/* @__PURE__ */ React.createElement(View, { style: [styles$z.mainContainer, style], testID }, /* @__PURE__ */ React.createElement(View, { style: [styles$z.modalContainer, modalContainerStyle] }, showHeader && /* @__PURE__ */ React.createElement(Pressable, {
|
|
751
|
+
/* @__PURE__ */ React.createElement(View, { style: [styles$z.mainContainer, style], testID }, /* @__PURE__ */ React.createElement(View, { style: [styles$z.modalContainer, modalContainerStyle] }, showHeader && /* @__PURE__ */ React.createElement(Pressable, { onPressOut: () => swipeDirection === "" && toggleModal() }, showSeparator && /* @__PURE__ */ React.createElement(View, { style: styles$z.separator }), /* @__PURE__ */ React.createElement(View, { style: styles$z.headerContainer }, /* @__PURE__ */ React.createElement(View, null, showLeftIcon && leftIcon ? React.cloneElement(leftIcon, {
|
|
752
752
|
width: moderateScale(24),
|
|
753
753
|
height: moderateScale(24),
|
|
754
754
|
style: styles$z.leftIconStyle,
|
|
755
|
-
|
|
755
|
+
onPressOut: onLeftIconPress
|
|
756
756
|
}) : null, /* @__PURE__ */ React.createElement(
|
|
757
757
|
CustomTypography,
|
|
758
758
|
{
|
|
@@ -760,14 +760,14 @@ const BottomDrawer = ({
|
|
|
760
760
|
text: title,
|
|
761
761
|
style: { ...styles$z.title, ...titleStyle }
|
|
762
762
|
}
|
|
763
|
-
)), /* @__PURE__ */ React.createElement(View, { style: rightTitle && rightTitle?.length > 0 ? styles$z.rightSideStyle : {} }, rightTitle && rightTitle?.length > 0 ? /* @__PURE__ */ React.createElement(Pressable, {
|
|
763
|
+
)), /* @__PURE__ */ React.createElement(View, { style: rightTitle && rightTitle?.length > 0 ? styles$z.rightSideStyle : {} }, rightTitle && rightTitle?.length > 0 ? /* @__PURE__ */ React.createElement(Pressable, { onPressOut: handleRightTitlePress }, /* @__PURE__ */ React.createElement(
|
|
764
764
|
CustomTypography,
|
|
765
765
|
{
|
|
766
766
|
variant: rightTitleVariant,
|
|
767
767
|
text: rightTitle,
|
|
768
768
|
style: { ...styles$z.rightTitle, ...rightTitleStyle }
|
|
769
769
|
}
|
|
770
|
-
)) : null, showRightIcon && rightIcon ? /* @__PURE__ */ React.createElement(Pressable, {
|
|
770
|
+
)) : null, showRightIcon && rightIcon ? /* @__PURE__ */ React.createElement(Pressable, { onPressOut: toggleModal, style: styles$z.rightIconStyle }, React.cloneElement(rightIcon, {
|
|
771
771
|
width: moderateScale(24),
|
|
772
772
|
height: moderateScale(24)
|
|
773
773
|
})) : null))), children))
|
|
@@ -8245,7 +8245,7 @@ const Accordion = ({
|
|
|
8245
8245
|
Pressable,
|
|
8246
8246
|
{
|
|
8247
8247
|
style: [styles$m.header, headerStyle, disabled && { opacity: 0.5 }],
|
|
8248
|
-
|
|
8248
|
+
onPressOut: !disabled ? onToggle : void 0
|
|
8249
8249
|
},
|
|
8250
8250
|
headerComponent ? headerComponent() : /* @__PURE__ */ React.createElement(
|
|
8251
8251
|
CustomTypography,
|
|
@@ -8509,12 +8509,12 @@ const CustomSearchBar = ({
|
|
|
8509
8509
|
},
|
|
8510
8510
|
inputContainerStyle
|
|
8511
8511
|
],
|
|
8512
|
-
|
|
8512
|
+
onPressOut: handlePress
|
|
8513
8513
|
},
|
|
8514
8514
|
/* @__PURE__ */ React.createElement(
|
|
8515
8515
|
Pressable,
|
|
8516
8516
|
{
|
|
8517
|
-
|
|
8517
|
+
onPressOut: () => {
|
|
8518
8518
|
console.log("Search icon pressed");
|
|
8519
8519
|
onSearchIconPress?.();
|
|
8520
8520
|
},
|
|
@@ -8546,7 +8546,7 @@ const CustomSearchBar = ({
|
|
|
8546
8546
|
value && /* @__PURE__ */ React.createElement(
|
|
8547
8547
|
Pressable,
|
|
8548
8548
|
{
|
|
8549
|
-
|
|
8549
|
+
onPressOut: () => {
|
|
8550
8550
|
setValue("");
|
|
8551
8551
|
onCrossIconPress?.();
|
|
8552
8552
|
},
|
|
@@ -9922,7 +9922,8 @@ const styles$8 = StyleSheet.create({
|
|
|
9922
9922
|
textAlign: "left"
|
|
9923
9923
|
},
|
|
9924
9924
|
dropdown: {
|
|
9925
|
-
|
|
9925
|
+
minHeight: verticalScale(48),
|
|
9926
|
+
paddingVertical: verticalScale(8),
|
|
9926
9927
|
borderColor: theme.BORDER_PRIMARY["light"],
|
|
9927
9928
|
borderWidth: 1,
|
|
9928
9929
|
borderRadius: 0,
|