dhre-ui-kit 0.0.180 → 0.0.181

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
@@ -3337,6 +3337,7 @@ const styles$8 = StyleSheet.create({
3337
3337
 
3338
3338
  const CustomDropdown = (props) => {
3339
3339
  const {
3340
+ data,
3340
3341
  labelField = "label",
3341
3342
  valueField = "value",
3342
3343
  label,
@@ -3386,6 +3387,7 @@ const CustomDropdown = (props) => {
3386
3387
  return /* @__PURE__ */ React.createElement(View, { style: [styles$7.container, containerStyle] }, label && renderLabel(), /* @__PURE__ */ React.createElement(
3387
3388
  Dropdown,
3388
3389
  {
3390
+ ...props,
3389
3391
  style: [
3390
3392
  styles$7.dropdown,
3391
3393
  dropdownStyle,
@@ -3394,6 +3396,7 @@ const CustomDropdown = (props) => {
3394
3396
  placeholderStyle: [styles$7.placeholderStyle, placeholderStyle],
3395
3397
  selectedTextStyle: [styles$7.selectedTextStyle, selectedTextStyle],
3396
3398
  iconStyle: [styles$7.iconStyle, iconStyle],
3399
+ data: data ?? [],
3397
3400
  labelField,
3398
3401
  valueField,
3399
3402
  placeholder: !isFocus ? placeholder : "",
@@ -3406,8 +3409,7 @@ const CustomDropdown = (props) => {
3406
3409
  itemTextStyle,
3407
3410
  containerStyle: menuContainerStyle,
3408
3411
  activeColor,
3409
- itemContainerStyle: [styles$7.itemListStyle, itemContainerStyle],
3410
- ...props
3412
+ itemContainerStyle: [styles$7.itemListStyle, itemContainerStyle]
3411
3413
  }
3412
3414
  ));
3413
3415
  };