dhre-ui-kit 0.0.227 → 0.0.229

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.mjs CHANGED
@@ -3099,7 +3099,15 @@ const ScrollableList = ({
3099
3099
  textColor: (activeTab ?? selectedItem) === item.name ? selectedItemTextColor : defaultItemTextColor
3100
3100
  }
3101
3101
  ),
3102
- item?.isError && /* @__PURE__ */ React.createElement(View, { style: [styles.errorViewStyle, errorStyle] })
3102
+ item?.isError ? /* @__PURE__ */ React.createElement(View, { style: [styles.errorViewStyle, errorStyle] }, item?.errorText ? /* @__PURE__ */ React.createElement(
3103
+ CustomText$1,
3104
+ {
3105
+ text: item?.errorText,
3106
+ variant: FontStyle.L2_REGULAR,
3107
+ textColor: Theme.CONTENT_PRIMARY,
3108
+ style: styles.errorTextStyle
3109
+ }
3110
+ ) : "") : null
3103
3111
  ))
3104
3112
  ));
3105
3113
  };
@@ -3129,7 +3137,8 @@ const createStyles$2 = (theme) => {
3129
3137
  height: 6,
3130
3138
  borderRadius: 100,
3131
3139
  backgroundColor: theme[Theme.BORDER_INVERTED]
3132
- }
3140
+ },
3141
+ errorTextStyle: { justifyContent: "center", alignSelf: "center" }
3133
3142
  });
3134
3143
  };
3135
3144
  var category = withThemeProvider(ScrollableList);