dhre-ui-kit 0.0.271 → 0.0.273
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 -1
- package/lib/index.js +3 -2
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +3 -2
- package/lib/index.mjs.map +1 -1
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -563,7 +563,7 @@ interface ScrollableListProps {
|
|
|
563
563
|
defaultItemTextColor?: string;
|
|
564
564
|
activeTab?: string;
|
|
565
565
|
errorStyle?: object;
|
|
566
|
-
|
|
566
|
+
activeTextStyle?: TextStyle;
|
|
567
567
|
}
|
|
568
568
|
declare const _default$7: (props: ScrollableListProps) => React$1.JSX.Element;
|
|
569
569
|
|
package/lib/index.js
CHANGED
|
@@ -3064,7 +3064,7 @@ const ScrollableList = ({
|
|
|
3064
3064
|
defaultItemTextColor = "CONTENT_SECONDRY",
|
|
3065
3065
|
activeTab,
|
|
3066
3066
|
errorStyle,
|
|
3067
|
-
|
|
3067
|
+
activeTextStyle
|
|
3068
3068
|
}) => {
|
|
3069
3069
|
const [selectedItem, setSelectedItem] = React.useState(
|
|
3070
3070
|
data && data.length > 0 ? data[0].name : null
|
|
@@ -3103,7 +3103,8 @@ const ScrollableList = ({
|
|
|
3103
3103
|
{
|
|
3104
3104
|
text: item.name,
|
|
3105
3105
|
variant: "L1_REGULAR",
|
|
3106
|
-
textColor: (activeTab ?? selectedItem) === item.name ?
|
|
3106
|
+
textColor: (activeTab ?? selectedItem) === item.name ? selectedItemTextColor : defaultItemTextColor,
|
|
3107
|
+
style: (activeTab ?? selectedItem) === item.name ? activeTextStyle ? activeTextStyle : {} : {}
|
|
3107
3108
|
}
|
|
3108
3109
|
),
|
|
3109
3110
|
item?.isError ? /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: [styles.errorViewStyle, errorStyle] }, item?.errorText ? /* @__PURE__ */ React__default["default"].createElement(
|