@timpel/forumkit-sdk-react-native 0.2.6 → 0.2.8
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 +6 -8
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3807,7 +3807,7 @@ function ShareSheet({ apiUrl, forumId, token, onClose, onShare }) {
|
|
|
3807
3807
|
return next;
|
|
3808
3808
|
});
|
|
3809
3809
|
}
|
|
3810
|
-
return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(BottomSheetShell, { visible: true, onClose, children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_react_native30.KeyboardAvoidingView, { style: { flex: 1 }, behavior: import_react_native30.Platform.OS === "ios" ? "padding" : "height", children: /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(import_react_native30.View, { style: [styles22.sheet, { backgroundColor: tokens.elev, borderColor: tokens.border, maxHeight, paddingBottom }], children: [
|
|
3810
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(BottomSheetShell, { visible: true, onClose, children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_react_native30.KeyboardAvoidingView, { style: { flex: 1, justifyContent: "flex-end" }, behavior: import_react_native30.Platform.OS === "ios" ? "padding" : "height", children: /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(import_react_native30.View, { style: [styles22.sheet, { backgroundColor: tokens.elev, borderColor: tokens.border, maxHeight, paddingBottom }], children: [
|
|
3811
3811
|
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_react_native30.Text, { style: [styles22.title, { color: tokens.text }], children: "Share with a member" }),
|
|
3812
3812
|
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
3813
3813
|
import_react_native30.TextInput,
|
|
@@ -3816,7 +3816,7 @@ function ShareSheet({ apiUrl, forumId, token, onClose, onShare }) {
|
|
|
3816
3816
|
onChangeText: setQuery,
|
|
3817
3817
|
placeholder: "Search members",
|
|
3818
3818
|
placeholderTextColor: tokens.muted,
|
|
3819
|
-
style: [styles22.search, { color: tokens.text, backgroundColor: tokens["surface-2"]
|
|
3819
|
+
style: [styles22.search, { color: tokens.text, backgroundColor: tokens["surface-2"] }]
|
|
3820
3820
|
}
|
|
3821
3821
|
),
|
|
3822
3822
|
loading ? /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_react_native30.ActivityIndicator, { color: tokens.accent, style: { padding: 16 } }) : /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
@@ -3857,7 +3857,7 @@ function ShareSheet({ apiUrl, forumId, token, onClose, onShare }) {
|
|
|
3857
3857
|
var styles22 = import_react_native30.StyleSheet.create({
|
|
3858
3858
|
sheet: { borderTopWidth: 1, borderTopLeftRadius: 18, borderTopRightRadius: 18, paddingHorizontal: 16, paddingTop: 16 },
|
|
3859
3859
|
title: { fontSize: 16, fontWeight: "800", marginBottom: 12 },
|
|
3860
|
-
search: {
|
|
3860
|
+
search: { borderRadius: 999, paddingHorizontal: 14, paddingVertical: 9, fontSize: 14 },
|
|
3861
3861
|
row: { flexDirection: "row", alignItems: "center", gap: 10, paddingVertical: 10 },
|
|
3862
3862
|
check: { width: 20, height: 20, borderRadius: 10, borderWidth: 2 },
|
|
3863
3863
|
shareBtn: { borderRadius: 999, paddingVertical: 12, alignItems: "center", marginTop: 12 }
|
|
@@ -5714,7 +5714,7 @@ function EditProfileSheet({ apiUrl, forumId, token, profile, onClose, onSaved })
|
|
|
5714
5714
|
setSaving(false);
|
|
5715
5715
|
}
|
|
5716
5716
|
}
|
|
5717
|
-
return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(BottomSheetShell, { visible: true, onClose, children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_react_native45.KeyboardAvoidingView, { style: { flex: 1 }, behavior: import_react_native45.Platform.OS === "ios" ? "padding" : "height", children: /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(import_react_native45.View, { style: [styles37.sheet, { backgroundColor: tokens.elev, borderColor: tokens.border, maxHeight: sheetMaxHeight, paddingBottom }], children: [
|
|
5717
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(BottomSheetShell, { visible: true, onClose, children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_react_native45.KeyboardAvoidingView, { style: { flex: 1, justifyContent: "flex-end" }, behavior: import_react_native45.Platform.OS === "ios" ? "padding" : "height", children: /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(import_react_native45.View, { style: [styles37.sheet, { backgroundColor: tokens.elev, borderColor: tokens.border, maxHeight: sheetMaxHeight, paddingBottom }], children: [
|
|
5718
5718
|
/* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(import_react_native45.View, { style: styles37.header, children: [
|
|
5719
5719
|
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_react_native45.Text, { style: [styles37.title, { color: tokens.text }], children: "Edit profile" }),
|
|
5720
5720
|
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_react_native45.Pressable, { onPress: onClose, hitSlop: 8, children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(CloseIcon, { size: 18, color: tokens.text }) })
|
|
@@ -5957,8 +5957,7 @@ function ProfileBody() {
|
|
|
5957
5957
|
activityLoading ? /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_react_native46.View, { style: { alignItems: "center", paddingVertical: 30 }, children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(Mascot, { size: 36 }) }) : activity.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(import_react_native46.View, { style: styles38.empty, children: [
|
|
5958
5958
|
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)(Mascot, { size: 88, animated: false, badge: false }),
|
|
5959
5959
|
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_react_native46.Text, { style: [styles38.emptyTitle, { color: tokens.text }], children: copy.title }),
|
|
5960
|
-
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_react_native46.Text, { style: [styles38.emptyDesc, { color: tokens.muted }], children: copy.description })
|
|
5961
|
-
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_react_native46.Pressable, { onPress: () => setEditOpen(true), style: [styles38.settingsBtn, { backgroundColor: tokens.text }], children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_react_native46.Text, { style: { color: tokens.bg, fontSize: 13.5, fontWeight: "700" }, children: "Update Settings" }) })
|
|
5960
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_react_native46.Text, { style: [styles38.emptyDesc, { color: tokens.muted }], children: copy.description })
|
|
5962
5961
|
] }) : /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_react_native46.View, { style: { paddingHorizontal: 16 }, children: activity.map((a, i) => a.kind === "thread" ? /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
5963
5962
|
PostRow,
|
|
5964
5963
|
{
|
|
@@ -6036,8 +6035,7 @@ var styles38 = import_react_native46.StyleSheet.create({
|
|
|
6036
6035
|
divider: { height: 1, marginTop: 10 },
|
|
6037
6036
|
empty: { alignItems: "center", paddingTop: 40, paddingHorizontal: 24 },
|
|
6038
6037
|
emptyTitle: { fontSize: 17, fontWeight: "800", marginTop: 16, textAlign: "center" },
|
|
6039
|
-
emptyDesc: { fontSize: 13.5, textAlign: "center", marginTop: 8, maxWidth: 280, lineHeight: 20 }
|
|
6040
|
-
settingsBtn: { borderRadius: 999, paddingVertical: 10, paddingHorizontal: 20, marginTop: 18 }
|
|
6038
|
+
emptyDesc: { fontSize: 13.5, textAlign: "center", marginTop: 8, maxWidth: 280, lineHeight: 20 }
|
|
6041
6039
|
});
|
|
6042
6040
|
|
|
6043
6041
|
// src/screens/SearchScreen.tsx
|