@hoddy-ui/core 2.5.38 → 2.5.40
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/next/dist/index.js +37 -15
- package/next/dist/index.js.map +1 -1
- package/next/dist/index.mjs +48 -19
- package/next/dist/index.mjs.map +1 -1
- package/next/package.json +1 -1
- package/package.json +1 -1
- package/src/theme/index.tsx +6 -2
package/next/dist/index.js
CHANGED
|
@@ -469,7 +469,6 @@ var ConfigureSystemUI = () => {
|
|
|
469
469
|
const colors2 = useColors();
|
|
470
470
|
(0, import_react3.useEffect)(() => {
|
|
471
471
|
const config2 = getConfig();
|
|
472
|
-
import_react_native3.Appearance.setColorScheme(theme);
|
|
473
472
|
if (colors2) {
|
|
474
473
|
SystemUI.setBackgroundColorAsync(colors2.white[1]);
|
|
475
474
|
if (import_react_native3.Platform.OS === "android") {
|
|
@@ -506,15 +505,19 @@ var UIThemeProvider = ({ children }) => {
|
|
|
506
505
|
type: "default",
|
|
507
506
|
payload: colorScheme
|
|
508
507
|
});
|
|
509
|
-
|
|
508
|
+
import_react_native3.Appearance.setColorScheme(void 0);
|
|
509
|
+
} else {
|
|
510
510
|
themeDispatch({
|
|
511
511
|
type: val
|
|
512
512
|
});
|
|
513
|
+
import_react_native3.Appearance.setColorScheme(val);
|
|
514
|
+
}
|
|
513
515
|
} else {
|
|
514
516
|
themeDispatch({
|
|
515
517
|
type: "default",
|
|
516
518
|
payload: colorScheme
|
|
517
519
|
});
|
|
520
|
+
import_react_native3.Appearance.setColorScheme(void 0);
|
|
518
521
|
}
|
|
519
522
|
});
|
|
520
523
|
}, [colorScheme]);
|
|
@@ -1064,7 +1067,7 @@ var Popup = ({
|
|
|
1064
1067
|
marginBottom: import_react_native11.Platform.OS === "android" && keyboardVisible ? bottom : 0
|
|
1065
1068
|
},
|
|
1066
1069
|
container: {
|
|
1067
|
-
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,
|
|
1068
1071
|
backgroundColor: theme === "dark" ? "#111" : colors2.white[1],
|
|
1069
1072
|
borderTopLeftRadius: 20,
|
|
1070
1073
|
borderTopRightRadius: 20,
|
|
@@ -1075,7 +1078,9 @@ var Popup = ({
|
|
|
1075
1078
|
...style
|
|
1076
1079
|
},
|
|
1077
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,
|
|
1078
1082
|
paddingHorizontal: bare ? void 0 : "15@ms"
|
|
1083
|
+
// backgroundColor : "#f94",
|
|
1079
1084
|
},
|
|
1080
1085
|
title: {
|
|
1081
1086
|
flexDirection: "row",
|
|
@@ -1105,7 +1110,8 @@ var Popup = ({
|
|
|
1105
1110
|
animationType: "none",
|
|
1106
1111
|
statusBarTranslucent: true,
|
|
1107
1112
|
visible: modalOpen,
|
|
1108
|
-
onRequestClose: closeAction
|
|
1113
|
+
onRequestClose: closeAction,
|
|
1114
|
+
navigationBarTranslucent: true
|
|
1109
1115
|
},
|
|
1110
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(
|
|
1111
1117
|
import_react_native11.KeyboardAvoidingView,
|
|
@@ -1470,22 +1476,31 @@ var SelectMenu = ({
|
|
|
1470
1476
|
title: label,
|
|
1471
1477
|
disableAutoKeyboardManagement: true
|
|
1472
1478
|
},
|
|
1473
|
-
/* @__PURE__ */ import_react15.default.createElement(import_react_native15.View, { style: styles.content }, /* @__PURE__ */ import_react15.default.createElement(
|
|
1474
|
-
TextField_default,
|
|
1475
|
-
{
|
|
1476
|
-
label: searchPlaceholder,
|
|
1477
|
-
value: search,
|
|
1478
|
-
type: "search",
|
|
1479
|
-
onChangeText: setSearch,
|
|
1480
|
-
variant: "outlined"
|
|
1481
|
-
}
|
|
1482
|
-
)), /* @__PURE__ */ import_react15.default.createElement(
|
|
1479
|
+
/* @__PURE__ */ import_react15.default.createElement(import_react_native15.View, { style: styles.content }, /* @__PURE__ */ import_react15.default.createElement(
|
|
1483
1480
|
import_react_native15.FlatList,
|
|
1484
1481
|
{
|
|
1485
1482
|
removeClippedSubviews: true,
|
|
1486
1483
|
keyExtractor: (item) => item.value,
|
|
1487
1484
|
bounces: false,
|
|
1488
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
|
+
)),
|
|
1489
1504
|
data: options.filter(
|
|
1490
1505
|
(item) => search.length > 1 ? item.label.toLowerCase().indexOf(search.toLowerCase()) > -1 : item
|
|
1491
1506
|
).sort((a, b) => a.label.localeCompare(b.label))
|
|
@@ -1760,7 +1775,14 @@ var TextField2 = import_react16.default.forwardRef(
|
|
|
1760
1775
|
multiline ? 50 + (props.numberOfLines || 1) * 18 : 50
|
|
1761
1776
|
);
|
|
1762
1777
|
const setFocused = (value2) => {
|
|
1763
|
-
|
|
1778
|
+
if (options && value2) {
|
|
1779
|
+
import_react_native16.Keyboard.dismiss();
|
|
1780
|
+
setTimeout(() => {
|
|
1781
|
+
_setFocused(value2);
|
|
1782
|
+
}, 100);
|
|
1783
|
+
} else {
|
|
1784
|
+
_setFocused(value2);
|
|
1785
|
+
}
|
|
1764
1786
|
};
|
|
1765
1787
|
const styles = import_react_native_size_matters13.ScaledSheet.create({
|
|
1766
1788
|
root: {
|