@foundrykit/components 1.0.23 → 1.1.0
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/.turbo/turbo-build.log +18 -0
- package/.turbo/turbo-type-check.log +4 -0
- package/CHANGELOG.md +11 -0
- package/dist/index.d.ts +9 -1
- package/dist/index.js +304 -89
- package/dist/index.js.map +1 -1
- package/package.json +6 -6
- package/src/components/advanced-search-bar/index.tsx +403 -145
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
> @foundrykit/components@1.0.23 build /Users/isj/Desktop/work/projects/foundry/packages/components
|
|
4
|
+
> tsup
|
|
5
|
+
|
|
6
|
+
[34mCLI[39m Building entry: src/index.ts
|
|
7
|
+
[34mCLI[39m Using tsconfig: tsconfig.json
|
|
8
|
+
[34mCLI[39m tsup v8.5.0
|
|
9
|
+
[34mCLI[39m Using tsup config: /Users/isj/Desktop/work/projects/foundry/packages/components/tsup.config.ts
|
|
10
|
+
[34mCLI[39m Target: es2022
|
|
11
|
+
[34mCLI[39m Cleaning output folder
|
|
12
|
+
[34mESM[39m Build start
|
|
13
|
+
[32mESM[39m [1mdist/index.js [22m[32m44.13 KB[39m
|
|
14
|
+
[32mESM[39m [1mdist/index.js.map [22m[32m84.55 KB[39m
|
|
15
|
+
[32mESM[39m ⚡️ Build success in 11ms
|
|
16
|
+
DTS Build start
|
|
17
|
+
DTS ⚡️ Build success in 1009ms
|
|
18
|
+
DTS dist/index.d.ts 15.67 KB
|
package/CHANGELOG.md
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -110,7 +110,8 @@ interface AdvancedSearchProviderProps {
|
|
|
110
110
|
*/
|
|
111
111
|
styles?: {
|
|
112
112
|
/** CSS properties for the results dropdown */
|
|
113
|
-
results
|
|
113
|
+
results?: React.CSSProperties;
|
|
114
|
+
width?: string | number;
|
|
114
115
|
};
|
|
115
116
|
}
|
|
116
117
|
/**
|
|
@@ -220,6 +221,10 @@ interface SearchResultsProps extends React.HTMLAttributes<HTMLDivElement>, Varia
|
|
|
220
221
|
emptyStateMessage?: string;
|
|
221
222
|
/** Whether to show loading state while searching */
|
|
222
223
|
showLoadingState?: boolean;
|
|
224
|
+
/** Whether loading replaces results or keeps previous results visible */
|
|
225
|
+
loadingBehavior?: 'replace-results' | 'preserve-results';
|
|
226
|
+
/** Custom loading state rendered instead of loadingMessage */
|
|
227
|
+
loadingState?: React.ReactNode;
|
|
223
228
|
/** Custom message to show while loading */
|
|
224
229
|
loadingMessage?: string;
|
|
225
230
|
}
|
|
@@ -319,6 +324,9 @@ declare const SearchItem: React.ForwardRefExoticComponent<SearchItemProps & Reac
|
|
|
319
324
|
* Wrapper component for documentation and preview purposes.
|
|
320
325
|
* Provides a complete search implementation with mock data for testing and demos.
|
|
321
326
|
*
|
|
327
|
+
* @deprecated Demo-only helper. Prefer composing AdvancedSearchProvider,
|
|
328
|
+
* AdvancedSearchBar, SearchInput, and SearchResults in application code.
|
|
329
|
+
*
|
|
322
330
|
* @param props - Configuration props for the search wrapper
|
|
323
331
|
* @returns Complete search component with mock functionality
|
|
324
332
|
*
|