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.mjs
CHANGED
|
@@ -3028,7 +3028,7 @@ const ScrollableList = ({
|
|
|
3028
3028
|
defaultItemTextColor = "CONTENT_SECONDRY",
|
|
3029
3029
|
activeTab,
|
|
3030
3030
|
errorStyle,
|
|
3031
|
-
|
|
3031
|
+
activeTextStyle
|
|
3032
3032
|
}) => {
|
|
3033
3033
|
const [selectedItem, setSelectedItem] = useState(
|
|
3034
3034
|
data && data.length > 0 ? data[0].name : null
|
|
@@ -3067,7 +3067,8 @@ const ScrollableList = ({
|
|
|
3067
3067
|
{
|
|
3068
3068
|
text: item.name,
|
|
3069
3069
|
variant: "L1_REGULAR",
|
|
3070
|
-
textColor: (activeTab ?? selectedItem) === item.name ?
|
|
3070
|
+
textColor: (activeTab ?? selectedItem) === item.name ? selectedItemTextColor : defaultItemTextColor,
|
|
3071
|
+
style: (activeTab ?? selectedItem) === item.name ? activeTextStyle ? activeTextStyle : {} : {}
|
|
3071
3072
|
}
|
|
3072
3073
|
),
|
|
3073
3074
|
item?.isError ? /* @__PURE__ */ React.createElement(View, { style: [styles.errorViewStyle, errorStyle] }, item?.errorText ? /* @__PURE__ */ React.createElement(
|