dhre-ui-kit 0.0.179 → 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 CHANGED
@@ -631,8 +631,9 @@ 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
- declare const CustomDropdown: React$1.FC<CustomDropdownProps>;
636
+ declare const CustomDropdown: (props: CustomDropdownProps) => React$1.JSX.Element;
636
637
 
637
638
  interface CustomSwitchBtnProps {
638
639
  value: boolean;
package/lib/index.js CHANGED
@@ -252,7 +252,7 @@ const theme = {
252
252
  },
253
253
  [Theme.BORDER_SEPRATOR]: {
254
254
  light: "#F5F5F5",
255
- dark: "#404040"
255
+ dark: "#282828"
256
256
  },
257
257
  [Theme.BORDER_SEPERATOR_HEADER]: {
258
258
  light: "#E1E1E1",
@@ -3368,28 +3368,29 @@ const styles$8 = reactNative.StyleSheet.create({
3368
3368
  }
3369
3369
  });
3370
3370
 
3371
- const CustomDropdown = ({
3372
- data,
3373
- labelField = "label",
3374
- valueField = "value",
3375
- label,
3376
- placeholder,
3377
- containerStyle,
3378
- dropdownStyle,
3379
- dropdownFocusStyle,
3380
- placeholderStyle,
3381
- selectedTextStyle,
3382
- iconStyle,
3383
- labelStyle,
3384
- labelFocusStyle,
3385
- defaultValue,
3386
- iconColor,
3387
- itemTextStyle,
3388
- onValueChange,
3389
- itemContainerStyle,
3390
- menuContainerStyle,
3391
- activeColor
3392
- }) => {
3371
+ const CustomDropdown = (props) => {
3372
+ const {
3373
+ data,
3374
+ labelField = "label",
3375
+ valueField = "value",
3376
+ label,
3377
+ placeholder,
3378
+ containerStyle,
3379
+ dropdownStyle,
3380
+ dropdownFocusStyle,
3381
+ placeholderStyle,
3382
+ selectedTextStyle,
3383
+ iconStyle,
3384
+ labelStyle,
3385
+ labelFocusStyle,
3386
+ defaultValue,
3387
+ iconColor,
3388
+ itemTextStyle,
3389
+ onValueChange,
3390
+ itemContainerStyle,
3391
+ menuContainerStyle,
3392
+ activeColor
3393
+ } = props;
3393
3394
  const [value, setValue] = React.useState(defaultValue);
3394
3395
  const [isFocus, setIsFocus] = React.useState(false);
3395
3396
  const renderLabel = () => {
@@ -3419,6 +3420,7 @@ const CustomDropdown = ({
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,