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.mjs
CHANGED
|
@@ -219,7 +219,7 @@ const theme = {
|
|
|
219
219
|
},
|
|
220
220
|
[Theme.BORDER_SEPRATOR]: {
|
|
221
221
|
light: "#F5F5F5",
|
|
222
|
-
dark: "#
|
|
222
|
+
dark: "#282828"
|
|
223
223
|
},
|
|
224
224
|
[Theme.BORDER_SEPERATOR_HEADER]: {
|
|
225
225
|
light: "#E1E1E1",
|
|
@@ -3335,28 +3335,29 @@ const styles$8 = StyleSheet.create({
|
|
|
3335
3335
|
}
|
|
3336
3336
|
});
|
|
3337
3337
|
|
|
3338
|
-
const CustomDropdown = ({
|
|
3339
|
-
|
|
3340
|
-
|
|
3341
|
-
|
|
3342
|
-
|
|
3343
|
-
|
|
3344
|
-
|
|
3345
|
-
|
|
3346
|
-
|
|
3347
|
-
|
|
3348
|
-
|
|
3349
|
-
|
|
3350
|
-
|
|
3351
|
-
|
|
3352
|
-
|
|
3353
|
-
|
|
3354
|
-
|
|
3355
|
-
|
|
3356
|
-
|
|
3357
|
-
|
|
3358
|
-
|
|
3359
|
-
|
|
3338
|
+
const CustomDropdown = (props) => {
|
|
3339
|
+
const {
|
|
3340
|
+
data,
|
|
3341
|
+
labelField = "label",
|
|
3342
|
+
valueField = "value",
|
|
3343
|
+
label,
|
|
3344
|
+
placeholder,
|
|
3345
|
+
containerStyle,
|
|
3346
|
+
dropdownStyle,
|
|
3347
|
+
dropdownFocusStyle,
|
|
3348
|
+
placeholderStyle,
|
|
3349
|
+
selectedTextStyle,
|
|
3350
|
+
iconStyle,
|
|
3351
|
+
labelStyle,
|
|
3352
|
+
labelFocusStyle,
|
|
3353
|
+
defaultValue,
|
|
3354
|
+
iconColor,
|
|
3355
|
+
itemTextStyle,
|
|
3356
|
+
onValueChange,
|
|
3357
|
+
itemContainerStyle,
|
|
3358
|
+
menuContainerStyle,
|
|
3359
|
+
activeColor
|
|
3360
|
+
} = props;
|
|
3360
3361
|
const [value, setValue] = useState(defaultValue);
|
|
3361
3362
|
const [isFocus, setIsFocus] = useState(false);
|
|
3362
3363
|
const renderLabel = () => {
|
|
@@ -3386,6 +3387,7 @@ const CustomDropdown = ({
|
|
|
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,
|