dhre-ui-kit 2.0.14 → 2.0.16
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 +2 -0
- package/lib/index.js +6 -4
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +6 -4
- package/lib/index.mjs.map +1 -1
- package/package.json +4 -4
package/lib/index.d.ts
CHANGED
|
@@ -592,9 +592,11 @@ interface ScrollableListProps {
|
|
|
592
592
|
defaultItemTextColor?: string;
|
|
593
593
|
activeTab?: string;
|
|
594
594
|
errorStyle?: object;
|
|
595
|
+
inActiveErrorStyle?: object;
|
|
595
596
|
activeTextStyle?: TextStyle;
|
|
596
597
|
enableTextWrap?: boolean;
|
|
597
598
|
errorTextStyle?: TextStyle;
|
|
599
|
+
inActiveErrorTextStyle?: TextStyle;
|
|
598
600
|
inActiveTextStyle?: TextStyle;
|
|
599
601
|
}
|
|
600
602
|
declare const _default$7: (props: ScrollableListProps) => React$1.JSX.Element;
|
package/lib/index.js
CHANGED
|
@@ -774,7 +774,7 @@ const BottomDrawer = ({
|
|
|
774
774
|
backdropColor: backdropColor ?? theme.SURFACE_PRIMARY.light,
|
|
775
775
|
hasBackdrop: showBlurView,
|
|
776
776
|
backdropOpacity,
|
|
777
|
-
propagateSwipe
|
|
777
|
+
propagateSwipe,
|
|
778
778
|
style: { margin: 0 }
|
|
779
779
|
},
|
|
780
780
|
/* @__PURE__ */ React__default["default"].createElement(
|
|
@@ -9355,7 +9355,9 @@ const ScrollableList = ({
|
|
|
9355
9355
|
defaultItemTextColor = "CONTENT_SECONDRY",
|
|
9356
9356
|
activeTab,
|
|
9357
9357
|
errorStyle,
|
|
9358
|
+
inActiveErrorStyle,
|
|
9358
9359
|
errorTextStyle,
|
|
9360
|
+
inActiveErrorTextStyle,
|
|
9359
9361
|
activeTextStyle,
|
|
9360
9362
|
enableTextWrap,
|
|
9361
9363
|
inActiveTextStyle
|
|
@@ -9401,15 +9403,15 @@ const ScrollableList = ({
|
|
|
9401
9403
|
style: (activeTab ?? selectedItem) === item.name ? activeTextStyle ? activeTextStyle : {} : inActiveTextStyle ? inActiveTextStyle : {}
|
|
9402
9404
|
}
|
|
9403
9405
|
)),
|
|
9404
|
-
item?.isError ? /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: [styles.errorViewStyle, errorStyle] }, item?.errorText ? /* @__PURE__ */ React__default["default"].createElement(
|
|
9406
|
+
item?.isError ? /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: [styles.errorViewStyle, errorStyle, (activeTab ?? selectedItem) !== item.name && inActiveErrorStyle] }, item?.errorText ? /* @__PURE__ */ React__default["default"].createElement(
|
|
9405
9407
|
CustomText$1,
|
|
9406
9408
|
{
|
|
9407
9409
|
text: item?.errorText,
|
|
9408
9410
|
variant: FontStyle.L2_REGULAR,
|
|
9409
9411
|
textColor: Theme.CONTENT_PRIMARY,
|
|
9410
|
-
style: [styles.errorTextStyle, errorTextStyle]
|
|
9412
|
+
style: [styles.errorTextStyle, errorTextStyle, (activeTab ?? selectedItem) !== item.name && inActiveErrorTextStyle]
|
|
9411
9413
|
}
|
|
9412
|
-
) :
|
|
9414
|
+
) : null) : null
|
|
9413
9415
|
))
|
|
9414
9416
|
));
|
|
9415
9417
|
};
|