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 +2 -1
- package/lib/index.js +25 -23
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +25 -23
- package/lib/index.mjs.map +1 -1
- package/package.json +1 -1
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.
|
|
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: "#
|
|
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
|
-
|
|
3373
|
-
|
|
3374
|
-
|
|
3375
|
-
|
|
3376
|
-
|
|
3377
|
-
|
|
3378
|
-
|
|
3379
|
-
|
|
3380
|
-
|
|
3381
|
-
|
|
3382
|
-
|
|
3383
|
-
|
|
3384
|
-
|
|
3385
|
-
|
|
3386
|
-
|
|
3387
|
-
|
|
3388
|
-
|
|
3389
|
-
|
|
3390
|
-
|
|
3391
|
-
|
|
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,
|