dhre-ui-kit 0.0.180 → 0.0.182

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
@@ -3261,7 +3261,8 @@ const CommonTextInput = (props) => {
3261
3261
  keyboardType,
3262
3262
  theme: {
3263
3263
  colors: {
3264
- primary: labelColor ? labelColor : DHRE_COLORS_TEXT.DH_BLACK
3264
+ error: errorMessage?.length ? DHRE_DEFAULT.DH_SEMENTIC_ERROR : DHRE_COLORS_TEXT.DH_BLACK,
3265
+ primary: labelColor ? errorMessage?.length ? DHRE_DEFAULT.DH_SEMENTIC_ERROR : labelColor : DHRE_COLORS_TEXT.DH_BLACK
3265
3266
  }
3266
3267
  },
3267
3268
  style: [
@@ -3321,7 +3322,7 @@ const styles$8 = StyleSheet.create({
3321
3322
  justifyContent: "center"
3322
3323
  },
3323
3324
  multilineInput: {
3324
- minHeight: verticalScale(100),
3325
+ height: verticalScale(100),
3325
3326
  // Increased height for multiline
3326
3327
  paddingVertical: verticalScale(8)
3327
3328
  },
@@ -3337,6 +3338,7 @@ const styles$8 = StyleSheet.create({
3337
3338
 
3338
3339
  const CustomDropdown = (props) => {
3339
3340
  const {
3341
+ data,
3340
3342
  labelField = "label",
3341
3343
  valueField = "value",
3342
3344
  label,
@@ -3386,6 +3388,7 @@ const CustomDropdown = (props) => {
3386
3388
  return /* @__PURE__ */ React.createElement(View, { style: [styles$7.container, containerStyle] }, label && renderLabel(), /* @__PURE__ */ React.createElement(
3387
3389
  Dropdown,
3388
3390
  {
3391
+ ...props,
3389
3392
  style: [
3390
3393
  styles$7.dropdown,
3391
3394
  dropdownStyle,
@@ -3394,6 +3397,7 @@ const CustomDropdown = (props) => {
3394
3397
  placeholderStyle: [styles$7.placeholderStyle, placeholderStyle],
3395
3398
  selectedTextStyle: [styles$7.selectedTextStyle, selectedTextStyle],
3396
3399
  iconStyle: [styles$7.iconStyle, iconStyle],
3400
+ data: data ?? [],
3397
3401
  labelField,
3398
3402
  valueField,
3399
3403
  placeholder: !isFocus ? placeholder : "",
@@ -3406,8 +3410,7 @@ const CustomDropdown = (props) => {
3406
3410
  itemTextStyle,
3407
3411
  containerStyle: menuContainerStyle,
3408
3412
  activeColor,
3409
- itemContainerStyle: [styles$7.itemListStyle, itemContainerStyle],
3410
- ...props
3413
+ itemContainerStyle: [styles$7.itemListStyle, itemContainerStyle]
3411
3414
  }
3412
3415
  ));
3413
3416
  };