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.d.ts +1 -0
- package/lib/index.js +4 -2
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +4 -2
- package/lib/index.mjs.map +1 -1
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -631,6 +631,7 @@ interface CustomDropdownProps {
|
|
|
631
631
|
itemContainerStyle?: ViewStyle;
|
|
632
632
|
menuContainerStyle?: ViewStyle;
|
|
633
633
|
activeColor?: string;
|
|
634
|
+
renderRightIcon?: (visible?: boolean) => JSX.Element | null | undefined;
|
|
634
635
|
}
|
|
635
636
|
declare const CustomDropdown: (props: CustomDropdownProps) => React$1.JSX.Element;
|
|
636
637
|
|
package/lib/index.js
CHANGED
|
@@ -3370,6 +3370,7 @@ const styles$8 = reactNative.StyleSheet.create({
|
|
|
3370
3370
|
|
|
3371
3371
|
const CustomDropdown = (props) => {
|
|
3372
3372
|
const {
|
|
3373
|
+
data,
|
|
3373
3374
|
labelField = "label",
|
|
3374
3375
|
valueField = "value",
|
|
3375
3376
|
label,
|
|
@@ -3419,6 +3420,7 @@ const CustomDropdown = (props) => {
|
|
|
3419
3420
|
return /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: [styles$7.container, containerStyle] }, label && renderLabel(), /* @__PURE__ */ React__default["default"].createElement(
|
|
3420
3421
|
reactNativeElementDropdown.Dropdown,
|
|
3421
3422
|
{
|
|
3423
|
+
...props,
|
|
3422
3424
|
style: [
|
|
3423
3425
|
styles$7.dropdown,
|
|
3424
3426
|
dropdownStyle,
|
|
@@ -3427,6 +3429,7 @@ const CustomDropdown = (props) => {
|
|
|
3427
3429
|
placeholderStyle: [styles$7.placeholderStyle, placeholderStyle],
|
|
3428
3430
|
selectedTextStyle: [styles$7.selectedTextStyle, selectedTextStyle],
|
|
3429
3431
|
iconStyle: [styles$7.iconStyle, iconStyle],
|
|
3432
|
+
data: data ?? [],
|
|
3430
3433
|
labelField,
|
|
3431
3434
|
valueField,
|
|
3432
3435
|
placeholder: !isFocus ? placeholder : "",
|
|
@@ -3439,8 +3442,7 @@ const CustomDropdown = (props) => {
|
|
|
3439
3442
|
itemTextStyle,
|
|
3440
3443
|
containerStyle: menuContainerStyle,
|
|
3441
3444
|
activeColor,
|
|
3442
|
-
itemContainerStyle: [styles$7.itemListStyle, itemContainerStyle]
|
|
3443
|
-
...props
|
|
3445
|
+
itemContainerStyle: [styles$7.itemListStyle, itemContainerStyle]
|
|
3444
3446
|
}
|
|
3445
3447
|
));
|
|
3446
3448
|
};
|