@hoddy-ui/next 2.0.65 → 2.5.67
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/dist/index.js +37 -14
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +49 -19
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -505,15 +505,19 @@ var UIThemeProvider = ({ children }) => {
|
|
|
505
505
|
type: "default",
|
|
506
506
|
payload: colorScheme
|
|
507
507
|
});
|
|
508
|
-
|
|
508
|
+
import_react_native3.Appearance.setColorScheme(void 0);
|
|
509
|
+
} else {
|
|
509
510
|
themeDispatch({
|
|
510
511
|
type: val
|
|
511
512
|
});
|
|
513
|
+
import_react_native3.Appearance.setColorScheme(val);
|
|
514
|
+
}
|
|
512
515
|
} else {
|
|
513
516
|
themeDispatch({
|
|
514
517
|
type: "default",
|
|
515
518
|
payload: colorScheme
|
|
516
519
|
});
|
|
520
|
+
import_react_native3.Appearance.setColorScheme(void 0);
|
|
517
521
|
}
|
|
518
522
|
});
|
|
519
523
|
}, [colorScheme]);
|
|
@@ -1063,7 +1067,7 @@ var Popup = ({
|
|
|
1063
1067
|
marginBottom: import_react_native11.Platform.OS === "android" && keyboardVisible ? bottom : 0
|
|
1064
1068
|
},
|
|
1065
1069
|
container: {
|
|
1066
|
-
paddingBottom: sheet && !bare ? bottom + (0, import_react_native_size_matters8.ms)(
|
|
1070
|
+
paddingBottom: sheet && !bare ? bottom + (0, import_react_native_size_matters8.ms)(0) : void 0,
|
|
1067
1071
|
backgroundColor: theme === "dark" ? "#111" : colors2.white[1],
|
|
1068
1072
|
borderTopLeftRadius: 20,
|
|
1069
1073
|
borderTopRightRadius: 20,
|
|
@@ -1074,7 +1078,9 @@ var Popup = ({
|
|
|
1074
1078
|
...style
|
|
1075
1079
|
},
|
|
1076
1080
|
content: {
|
|
1081
|
+
maxHeight: sheet && !bare ? import_react_native11.Dimensions.get("screen").height * 0.9 - bottom - (0, import_react_native_size_matters8.ms)(60) : void 0,
|
|
1077
1082
|
paddingHorizontal: bare ? void 0 : "15@ms"
|
|
1083
|
+
// backgroundColor : "#f94",
|
|
1078
1084
|
},
|
|
1079
1085
|
title: {
|
|
1080
1086
|
flexDirection: "row",
|
|
@@ -1104,7 +1110,8 @@ var Popup = ({
|
|
|
1104
1110
|
animationType: "none",
|
|
1105
1111
|
statusBarTranslucent: true,
|
|
1106
1112
|
visible: modalOpen,
|
|
1107
|
-
onRequestClose: closeAction
|
|
1113
|
+
onRequestClose: closeAction,
|
|
1114
|
+
navigationBarTranslucent: true
|
|
1108
1115
|
},
|
|
1109
1116
|
/* @__PURE__ */ import_react11.default.createElement(UIThemeProvider, null, /* @__PURE__ */ import_react11.default.createElement(import_react_native_reanimated2.default.View, { style: [styles.backdrop, backdropAnimatedStyle] }), /* @__PURE__ */ import_react11.default.createElement(
|
|
1110
1117
|
import_react_native11.KeyboardAvoidingView,
|
|
@@ -1469,22 +1476,31 @@ var SelectMenu = ({
|
|
|
1469
1476
|
title: label,
|
|
1470
1477
|
disableAutoKeyboardManagement: true
|
|
1471
1478
|
},
|
|
1472
|
-
/* @__PURE__ */ import_react15.default.createElement(import_react_native15.View, { style: styles.content }, /* @__PURE__ */ import_react15.default.createElement(
|
|
1473
|
-
TextField_default,
|
|
1474
|
-
{
|
|
1475
|
-
label: searchPlaceholder,
|
|
1476
|
-
value: search,
|
|
1477
|
-
type: "search",
|
|
1478
|
-
onChangeText: setSearch,
|
|
1479
|
-
variant: "outlined"
|
|
1480
|
-
}
|
|
1481
|
-
)), /* @__PURE__ */ import_react15.default.createElement(
|
|
1479
|
+
/* @__PURE__ */ import_react15.default.createElement(import_react_native15.View, { style: styles.content }, /* @__PURE__ */ import_react15.default.createElement(
|
|
1482
1480
|
import_react_native15.FlatList,
|
|
1483
1481
|
{
|
|
1484
1482
|
removeClippedSubviews: true,
|
|
1485
1483
|
keyExtractor: (item) => item.value,
|
|
1486
1484
|
bounces: false,
|
|
1487
1485
|
renderItem,
|
|
1486
|
+
ListHeaderComponent: /* @__PURE__ */ import_react15.default.createElement(import_react_native15.View, { style: styles.header }, helperText && /* @__PURE__ */ import_react15.default.createElement(
|
|
1487
|
+
Typography_default,
|
|
1488
|
+
{
|
|
1489
|
+
variant: "body2",
|
|
1490
|
+
color: "textSecondary",
|
|
1491
|
+
gutterBottom: 5
|
|
1492
|
+
},
|
|
1493
|
+
helperText
|
|
1494
|
+
), searchEnabled && /* @__PURE__ */ import_react15.default.createElement(
|
|
1495
|
+
TextField_default,
|
|
1496
|
+
{
|
|
1497
|
+
label: searchPlaceholder,
|
|
1498
|
+
value: search,
|
|
1499
|
+
type: "search",
|
|
1500
|
+
onChangeText: setSearch,
|
|
1501
|
+
variant: "outlined"
|
|
1502
|
+
}
|
|
1503
|
+
)),
|
|
1488
1504
|
data: options.filter(
|
|
1489
1505
|
(item) => search.length > 1 ? item.label.toLowerCase().indexOf(search.toLowerCase()) > -1 : item
|
|
1490
1506
|
).sort((a, b) => a.label.localeCompare(b.label))
|
|
@@ -1759,7 +1775,14 @@ var TextField2 = import_react16.default.forwardRef(
|
|
|
1759
1775
|
multiline ? 50 + (props.numberOfLines || 1) * 18 : 50
|
|
1760
1776
|
);
|
|
1761
1777
|
const setFocused = (value2) => {
|
|
1762
|
-
|
|
1778
|
+
if (options && value2) {
|
|
1779
|
+
import_react_native16.Keyboard.dismiss();
|
|
1780
|
+
setTimeout(() => {
|
|
1781
|
+
_setFocused(value2);
|
|
1782
|
+
}, 100);
|
|
1783
|
+
} else {
|
|
1784
|
+
_setFocused(value2);
|
|
1785
|
+
}
|
|
1763
1786
|
};
|
|
1764
1787
|
const styles = import_react_native_size_matters13.ScaledSheet.create({
|
|
1765
1788
|
root: {
|