dhre-ui-kit 0.0.227 → 0.0.228

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