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.d.ts CHANGED
@@ -550,6 +550,7 @@ interface ScrollableListProps {
550
550
  name: string;
551
551
  value: string;
552
552
  isError?: boolean;
553
+ errorText?: string;
553
554
  }[] | undefined;
554
555
  handleSelectCategory: (name: string, value: string) => void;
555
556
  containerStyle?: object;
package/lib/index.js CHANGED
@@ -3135,7 +3135,16 @@ const ScrollableList = ({
3135
3135
  textColor: (activeTab ?? selectedItem) === item.name ? selectedItemTextColor : defaultItemTextColor
3136
3136
  }
3137
3137
  ),
3138
- item?.isError && /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: [styles.errorViewStyle, errorStyle] })
3138
+ item?.isError && /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: [styles.errorViewStyle, errorStyle] }),
3139
+ item?.isError ? /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: [styles.errorViewStyle, errorStyle] }, item?.errorText ? /* @__PURE__ */ React__default["default"].createElement(
3140
+ CustomText$1,
3141
+ {
3142
+ text: item?.errorText,
3143
+ variant: FontStyle.L2_REGULAR,
3144
+ textColor: Theme.CONTENT_PRIMARY,
3145
+ style: styles.errorTextStyle
3146
+ }
3147
+ ) : "") : null
3139
3148
  ))
3140
3149
  ));
3141
3150
  };
@@ -3165,7 +3174,8 @@ const createStyles$2 = (theme) => {
3165
3174
  height: 6,
3166
3175
  borderRadius: 100,
3167
3176
  backgroundColor: theme[Theme.BORDER_INVERTED]
3168
- }
3177
+ },
3178
+ errorTextStyle: { justifyContent: "center", alignSelf: "center" }
3169
3179
  });
3170
3180
  };
3171
3181
  var category = withThemeProvider(ScrollableList);