@storybook/react-native-ui 8.3.10-alpha.2 → 8.3.10
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 +4 -4
- package/package.json +3 -3
- package/src/SearchResults.tsx +6 -4
package/dist/index.js
CHANGED
|
@@ -4322,14 +4322,14 @@ var SearchResults = import_react11.default.memo(function SearchResults2({
|
|
|
4322
4322
|
closeMenu();
|
|
4323
4323
|
};
|
|
4324
4324
|
return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(ResultsList, { children: [
|
|
4325
|
-
results.length > 0 && !query
|
|
4325
|
+
results.length > 0 && !query ? /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(RecentlyOpenedTitle, { children: [
|
|
4326
4326
|
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(Text, { children: "Recently opened" }),
|
|
4327
4327
|
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(IconButton, { onPress: handleClearLastViewed })
|
|
4328
|
-
] }),
|
|
4329
|
-
results.length === 0 && query
|
|
4328
|
+
] }) : null,
|
|
4329
|
+
results.length === 0 && query ? /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_react_native4.View, { children: /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(NoResults, { children: [
|
|
4330
4330
|
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(Text, { style: { marginBottom: 8 }, children: "No components found" }),
|
|
4331
4331
|
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(Text, { children: "Find components by name or path." })
|
|
4332
|
-
] }) }),
|
|
4332
|
+
] }) }) : null,
|
|
4333
4333
|
results.map((result, index) => {
|
|
4334
4334
|
if (isExpandType(result)) {
|
|
4335
4335
|
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(MoreWrapper, { children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storybook/react-native-ui",
|
|
3
|
-
"version": "8.3.10
|
|
3
|
+
"version": "8.3.10",
|
|
4
4
|
"description": "ui components for react native storybook",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"dependencies": {
|
|
60
60
|
"@storybook/core": "^8.3.5",
|
|
61
61
|
"@storybook/react": "^8.3.5",
|
|
62
|
-
"@storybook/react-native-theming": "^8.3.10
|
|
62
|
+
"@storybook/react-native-theming": "^8.3.10",
|
|
63
63
|
"fuse.js": "^7.0.0",
|
|
64
64
|
"memoizerific": "^1.11.3",
|
|
65
65
|
"polished": "^4.3.1",
|
|
@@ -80,5 +80,5 @@
|
|
|
80
80
|
"publishConfig": {
|
|
81
81
|
"access": "public"
|
|
82
82
|
},
|
|
83
|
-
"gitHead": "
|
|
83
|
+
"gitHead": "df58f982babc3080187a88c9959d56d18eff82e4"
|
|
84
84
|
}
|
package/src/SearchResults.tsx
CHANGED
|
@@ -205,20 +205,22 @@ export const SearchResults: FC<{
|
|
|
205
205
|
|
|
206
206
|
return (
|
|
207
207
|
<ResultsList>
|
|
208
|
-
{results.length > 0 && !query
|
|
208
|
+
{results.length > 0 && !query ? (
|
|
209
209
|
<RecentlyOpenedTitle>
|
|
210
210
|
<Text>Recently opened</Text>
|
|
211
211
|
<IconButton onPress={handleClearLastViewed} />
|
|
212
212
|
</RecentlyOpenedTitle>
|
|
213
|
-
)}
|
|
214
|
-
|
|
213
|
+
) : null}
|
|
214
|
+
|
|
215
|
+
{results.length === 0 && query ? (
|
|
215
216
|
<View>
|
|
216
217
|
<NoResults>
|
|
217
218
|
<Text style={{ marginBottom: 8 }}>No components found</Text>
|
|
218
219
|
<Text>Find components by name or path.</Text>
|
|
219
220
|
</NoResults>
|
|
220
221
|
</View>
|
|
221
|
-
)}
|
|
222
|
+
) : null}
|
|
223
|
+
|
|
222
224
|
{results.map((result, index) => {
|
|
223
225
|
if (isExpandType(result)) {
|
|
224
226
|
return (
|