@foundrykit/components 2.2.0 → 2.2.3

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.
Files changed (105) hide show
  1. package/dist/chunk-4WYKNDYY.js +91 -0
  2. package/dist/chunk-4WYKNDYY.js.map +1 -0
  3. package/dist/chunk-5CXNMTIN.js +84 -0
  4. package/dist/chunk-5CXNMTIN.js.map +1 -0
  5. package/dist/chunk-B5ZTF5MZ.js +203 -0
  6. package/dist/chunk-B5ZTF5MZ.js.map +1 -0
  7. package/dist/chunk-EDNWBEKV.js +51 -0
  8. package/dist/chunk-EDNWBEKV.js.map +1 -0
  9. package/dist/chunk-ID7BFTID.js +248 -0
  10. package/dist/chunk-ID7BFTID.js.map +1 -0
  11. package/dist/chunk-IYBHXVCH.js +181 -0
  12. package/dist/chunk-IYBHXVCH.js.map +1 -0
  13. package/dist/chunk-KQZEF7PS.js +71 -0
  14. package/dist/chunk-KQZEF7PS.js.map +1 -0
  15. package/dist/chunk-P3GSYR7O.js +889 -0
  16. package/dist/chunk-P3GSYR7O.js.map +1 -0
  17. package/dist/chunk-PKSRYDN4.js +168 -0
  18. package/dist/chunk-PKSRYDN4.js.map +1 -0
  19. package/dist/chunk-SFM7ZMG2.js +104 -0
  20. package/dist/chunk-SFM7ZMG2.js.map +1 -0
  21. package/dist/chunk-TLQQZJUR.js +126 -0
  22. package/dist/chunk-TLQQZJUR.js.map +1 -0
  23. package/dist/chunk-UE7CDYEN.js +59 -0
  24. package/dist/chunk-UE7CDYEN.js.map +1 -0
  25. package/dist/chunk-UG7YS3D5.js +198 -0
  26. package/dist/chunk-UG7YS3D5.js.map +1 -0
  27. package/dist/components/advanced-search-bar/index.d.ts +308 -0
  28. package/dist/components/advanced-search-bar/index.js +34 -0
  29. package/dist/components/advanced-search-bar/index.js.map +1 -0
  30. package/dist/components/calendar/index.d.ts +20 -0
  31. package/dist/components/calendar/index.js +11 -0
  32. package/dist/components/calendar/index.js.map +1 -0
  33. package/dist/components/carousel/index.d.ts +40 -0
  34. package/dist/components/carousel/index.js +17 -0
  35. package/dist/components/carousel/index.js.map +1 -0
  36. package/dist/components/chart/index.d.ts +59 -0
  37. package/dist/components/chart/index.js +21 -0
  38. package/dist/components/chart/index.js.map +1 -0
  39. package/dist/components/combobox/index.d.ts +33 -0
  40. package/dist/components/combobox/index.js +10 -0
  41. package/dist/components/combobox/index.js.map +1 -0
  42. package/dist/components/command/index.d.ts +33 -0
  43. package/dist/components/command/index.js +25 -0
  44. package/dist/components/command/index.js.map +1 -0
  45. package/dist/components/data-table/index.d.ts +17 -0
  46. package/dist/components/data-table/index.js +9 -0
  47. package/dist/components/data-table/index.js.map +1 -0
  48. package/dist/components/date-picker/index.d.ts +17 -0
  49. package/dist/components/date-picker/index.js +9 -0
  50. package/dist/components/date-picker/index.js.map +1 -0
  51. package/dist/components/form/index.d.ts +37 -0
  52. package/dist/components/form/index.js +23 -0
  53. package/dist/components/form/index.js.map +1 -0
  54. package/dist/components/input-otp/index.d.ts +30 -0
  55. package/dist/components/input-otp/index.js +15 -0
  56. package/dist/components/input-otp/index.js.map +1 -0
  57. package/dist/components/pagination/index.d.ts +26 -0
  58. package/dist/components/pagination/index.js +20 -0
  59. package/dist/components/pagination/index.js.map +1 -0
  60. package/dist/components/search-bar/index.d.ts +17 -0
  61. package/dist/components/search-bar/index.js +9 -0
  62. package/dist/components/search-bar/index.js.map +1 -0
  63. package/dist/components/sidebar/index.d.ts +70 -0
  64. package/dist/components/sidebar/index.js +652 -0
  65. package/dist/components/sidebar/index.js.map +1 -0
  66. package/dist/components/theme-toggle/index.d.ts +20 -0
  67. package/dist/components/theme-toggle/index.js +9 -0
  68. package/dist/components/theme-toggle/index.js.map +1 -0
  69. package/dist/index.d.ts +27 -605
  70. package/dist/index.js +73 -2337
  71. package/dist/index.js.map +1 -1
  72. package/package.json +17 -10
  73. package/CHANGELOG.md +0 -362
  74. package/src/components/advanced-search-bar/config.ts +0 -223
  75. package/src/components/advanced-search-bar/index.tsx +0 -1415
  76. package/src/components/calendar/config.ts +0 -51
  77. package/src/components/calendar/index.tsx +0 -225
  78. package/src/components/carousel/config.ts +0 -28
  79. package/src/components/carousel/index.tsx +0 -258
  80. package/src/components/chart/config.ts +0 -28
  81. package/src/components/chart/index.tsx +0 -365
  82. package/src/components/combobox/config.ts +0 -28
  83. package/src/components/combobox/index.tsx +0 -111
  84. package/src/components/command/config.ts +0 -804
  85. package/src/components/command/index.tsx +0 -195
  86. package/src/components/data-table/config.ts +0 -28
  87. package/src/components/data-table/index.tsx +0 -124
  88. package/src/components/date-picker/config.ts +0 -55
  89. package/src/components/date-picker/index.tsx +0 -207
  90. package/src/components/form/config.ts +0 -21
  91. package/src/components/form/index.tsx +0 -150
  92. package/src/components/input-otp/config.ts +0 -28
  93. package/src/components/input-otp/index.tsx +0 -92
  94. package/src/components/pagination/config.ts +0 -367
  95. package/src/components/pagination/index.tsx +0 -135
  96. package/src/components/search-bar/config.ts +0 -58
  97. package/src/components/search-bar/index.tsx +0 -70
  98. package/src/components/sidebar/config.ts +0 -29
  99. package/src/components/sidebar/index.tsx +0 -723
  100. package/src/components/theme-toggle/config.ts +0 -27
  101. package/src/components/theme-toggle/index.tsx +0 -63
  102. package/src/index.ts +0 -83
  103. package/tsconfig.json +0 -12
  104. package/tsconfig.lint.json +0 -8
  105. package/tsup.config.ts +0 -11
package/CHANGELOG.md DELETED
@@ -1,362 +0,0 @@
1
- # @foundrykit/components
2
-
3
- ## 2.2.0
4
-
5
- ### Minor Changes
6
-
7
- - [#129](https://github.com/umi-labs/foundry/pull/129) [`dad73bd`](https://github.com/umi-labs/foundry/commit/dad73bdf46b3de1b3b6db52ceb4465516ebdb7e1) Thanks [@sneddonisaac](https://github.com/sneddonisaac)! - `ThemeToggle` now actually switches theme: it toggles the `.dark` class on `<html>` and sets `.theme-switching` during the flip so transitions don't smear the colour change. It has one ARIA state (a fixed "Dark mode" label plus `aria-pressed`), is a named export, and is exported from the package root. Copies that did `import ThemeToggle from '…/theme-toggle'` need `import { ThemeToggle }`. `Combobox` accepts `aria-label` and `id`, since a `role="combobox"` trigger takes no name from its text.
8
-
9
- ### Patch Changes
10
-
11
- - Updated dependencies [[`dad73bd`](https://github.com/umi-labs/foundry/commit/dad73bdf46b3de1b3b6db52ceb4465516ebdb7e1)]:
12
- - @foundrykit/primitives@2.0.9
13
-
14
- ## 2.1.4
15
-
16
- ### Patch Changes
17
-
18
- - Updated dependencies [[`f8b9faa`](https://github.com/umi-labs/foundry/commit/f8b9faa49e747e6a25b05f2be11c9b18319706d0), [`66409bd`](https://github.com/umi-labs/foundry/commit/66409bd67c511a8fc0096b479d46e95c8ef2e0b6)]:
19
- - @foundrykit/types@3.0.0
20
- - @foundrykit/hooks@2.0.7
21
- - @foundrykit/primitives@2.0.8
22
- - @foundrykit/utils@1.0.8
23
-
24
- ## 2.1.3
25
-
26
- ### Patch Changes
27
-
28
- - Updated dependencies [[`b6fc94d`](https://github.com/umi-labs/foundry/commit/b6fc94d3b0f172aa309388f61bd5306af6405fdf)]:
29
- - @foundrykit/hooks@2.0.7
30
- - @foundrykit/primitives@2.0.7
31
- - @foundrykit/types@2.0.7
32
- - @foundrykit/utils@1.0.7
33
-
34
- ## 2.1.2
35
-
36
- ### Patch Changes
37
-
38
- - [#36](https://github.com/umi-labs/foundry/pull/36) [`e8a0bf2`](https://github.com/umi-labs/foundry/commit/e8a0bf235e7c56807c3b9a57151603842c2cf1b1) Thanks [@sneddonisaac](https://github.com/sneddonisaac)! - Declare `class-variance-authority` as a dependency. `AdvancedSearchBar` imported it without listing it, so installs that don't hoist packages failed to resolve it.
39
-
40
- ## 2.1.1
41
-
42
- ### Patch Changes
43
-
44
- - feat(storybook, maps): massive updates to maps packages spliting and
45
- developing into full suites + storybook for easy of test
46
- - Updated dependencies
47
- - @foundrykit/primitives@2.0.6
48
- - @foundrykit/hooks@2.0.6
49
- - @foundrykit/types@2.0.6
50
-
51
- ## 2.1.0
52
-
53
- ### Minor Changes
54
-
55
- - updating advanced search bar to add a inline results mode
56
-
57
- ## 2.0.5
58
-
59
- ### Patch Changes
60
-
61
- - update
62
- - Updated dependencies
63
- - @foundrykit/primitives@2.0.5
64
- - @foundrykit/hooks@2.0.5
65
- - @foundrykit/types@2.0.5
66
-
67
- ## 2.0.4
68
-
69
- ### Patch Changes
70
-
71
- - updates
72
- - Updated dependencies
73
- - @foundrykit/primitives@2.0.4
74
- - @foundrykit/hooks@2.0.4
75
- - @foundrykit/types@2.0.4
76
-
77
- ## 2.0.3
78
-
79
- ### Patch Changes
80
-
81
- - updates
82
- - Updated dependencies
83
- - @foundrykit/primitives@2.0.3
84
- - @foundrykit/hooks@2.0.3
85
- - @foundrykit/types@2.0.3
86
-
87
- ## 2.0.2
88
-
89
- ### Patch Changes
90
-
91
- - updates
92
- - Updated dependencies
93
- - @foundrykit/primitives@2.0.2
94
- - @foundrykit/hooks@2.0.2
95
- - @foundrykit/types@2.0.2
96
-
97
- ## 2.0.1
98
-
99
- ### Patch Changes
100
-
101
- - updates and adding in new component
102
- - Updated dependencies
103
- - @foundrykit/primitives@2.0.1
104
- - @foundrykit/hooks@2.0.1
105
- - @foundrykit/types@2.0.1
106
-
107
- ## 2.0.0
108
-
109
- ### Major Changes
110
-
111
- - changes to cli update logic for old repos
112
-
113
- ### Patch Changes
114
-
115
- - Updated dependencies
116
- - @foundrykit/primitives@2.0.0
117
- - @foundrykit/hooks@2.0.0
118
- - @foundrykit/types@2.0.0
119
-
120
- ## 1.2.0
121
-
122
- ### Minor Changes
123
-
124
- - changes to how the cli works with updates
125
-
126
- ### Patch Changes
127
-
128
- - Updated dependencies
129
- - @foundrykit/hooks@1.2.0
130
- - @foundrykit/types@1.1.0
131
- - @foundrykit/primitives@1.0.15
132
-
133
- ## 1.1.0
134
-
135
- ### Minor Changes
136
-
137
- - c666749: mass update
138
-
139
- ### Patch Changes
140
-
141
- - Updated dependencies [c666749]
142
- - @foundrykit/hooks@1.1.0
143
-
144
- ## 1.0.23
145
-
146
- ### Patch Changes
147
-
148
- - Just a quick demo for Anvar
149
- - Updated dependencies
150
- - @foundrykit/hooks@1.0.10
151
- - @foundrykit/primitives@1.0.14
152
- - @foundrykit/types@1.0.9
153
- - @foundrykit/utils@1.0.6
154
-
155
- ## 1.0.22
156
-
157
- ### Patch Changes
158
-
159
- - update to file path and dependencies in the form config for installation
160
-
161
- ## 1.0.21
162
-
163
- ### Patch Changes
164
-
165
- - moving hooks and context for forms to the hooks package
166
- - Updated dependencies
167
- - @foundrykit/hooks@1.0.9
168
-
169
- ## 1.0.20
170
-
171
- ### Patch Changes
172
-
173
- - adding form to components package
174
-
175
- ## 1.0.19
176
-
177
- ### Patch Changes
178
-
179
- - Adding in JSdocs for better DX
180
- - Updated dependencies
181
- - @foundrykit/hooks@1.0.8
182
-
183
- ## 1.0.18
184
-
185
- ### Patch Changes
186
-
187
- - Update to show query result in input after selection
188
- - Updated dependencies
189
- - @foundrykit/primitives@1.0.13
190
-
191
- ## 1.0.17
192
-
193
- ### Patch Changes
194
-
195
- - Changing the height var on scroll areas
196
-
197
- ## 1.0.16
198
-
199
- ### Patch Changes
200
-
201
- - update to search results max-height
202
-
203
- ## 1.0.15
204
-
205
- ### Patch Changes
206
-
207
- - Updating wrapper and scroll functionality
208
- - Updated dependencies
209
- - @foundrykit/primitives@1.0.12
210
-
211
- ## 1.0.14
212
-
213
- ### Patch Changes
214
-
215
- - adding in the scroll-area primitive
216
- - Updated dependencies
217
- - @foundrykit/primitives@1.0.11
218
-
219
- ## 1.0.13
220
-
221
- ### Patch Changes
222
-
223
- - Update to add demo wrapper
224
-
225
- ## 1.0.12
226
-
227
- ### Patch Changes
228
-
229
- - updating issues with the advanced search bar component
230
-
231
- ## 1.0.11
232
-
233
- ### Patch Changes
234
-
235
- - Updated dependencies
236
- - @foundrykit/hooks@1.0.7
237
-
238
- ## 1.0.10
239
-
240
- ### Patch Changes
241
-
242
- - adding the advanced search bar
243
- - Updated dependencies
244
- - @foundrykit/hooks@1.0.6
245
- - @foundrykit/types@1.0.8
246
- - @foundrykit/primitives@1.0.10
247
-
248
- ## 1.0.9
249
-
250
- ### Patch Changes
251
-
252
- - Updating components and primitives as well as improving the registry demo
253
- - Updated dependencies
254
- - @foundrykit/primitives@1.0.9
255
- - @foundrykit/hooks@1.0.5
256
- - @foundrykit/utils@1.0.5
257
-
258
- ## 1.0.8
259
-
260
- ### Patch Changes
261
-
262
- - Updated dependencies
263
- - @foundrykit/primitives@1.0.8
264
-
265
- ## 1.0.7
266
-
267
- ### Patch Changes
268
-
269
- - Updated dependencies
270
- - @foundrykit/primitives@1.0.7
271
- - @foundrykit/types@1.0.7
272
-
273
- ## 1.0.6
274
-
275
- ### Patch Changes
276
-
277
- - Update to add command, import transformations and configs for many files
278
- - Updated dependencies
279
- - @foundrykit/primitives@1.0.6
280
- - @foundrykit/types@1.0.6
281
- - @foundrykit/utils@1.0.4
282
-
283
- ## 1.0.5
284
-
285
- ### Patch Changes
286
-
287
- - Update to config version management and config paths
288
- - Updated dependencies
289
- - @foundrykit/primitives@1.0.5
290
- - @foundrykit/types@1.0.5
291
- - @foundrykit/utils@1.0.3
292
-
293
- ## 1.0.4
294
-
295
- ### Patch Changes
296
-
297
- - refactoring for build errors
298
- - Updated dependencies
299
- - @foundrykit/primitives@1.0.4
300
- - @foundrykit/types@1.0.4
301
- - @foundrykit/utils@1.0.2
302
-
303
- ## 1.0.3
304
-
305
- ### Patch Changes
306
-
307
- - Updating registry data
308
- - Updated dependencies
309
- - @foundrykit/primitives@1.0.3
310
- - @foundrykit/types@1.0.3
311
- - @foundrykit/utils@1.0.1
312
-
313
- ## 1.0.2
314
-
315
- ### Patch Changes
316
-
317
- - Refactor package dependency handling
318
- - Updated dependencies
319
- - @foundrykit/primitives@1.0.2
320
- - @foundrykit/types@1.0.2
321
-
322
- ## 1.0.1
323
-
324
- ### Patch Changes
325
-
326
- - Updated dependencies
327
- - @foundrykit/types@1.0.1
328
- - @foundrykit/primitives@1.0.1
329
-
330
- ## 1.0.0
331
-
332
- ### Major Changes
333
-
334
- - Version alignment push
335
-
336
- ### Patch Changes
337
-
338
- - Updated dependencies
339
- - @foundrykit/primitives@1.0.0
340
- - @foundrykit/types@1.0.0
341
- - @foundrykit/utils@1.0.0
342
-
343
- ## 0.1.2
344
-
345
- ### Patch Changes
346
-
347
- - Updating versions to ensure they are inline
348
- - Updated dependencies [015ff5f]
349
- - Updated dependencies
350
- - @foundrykit/types@0.1.2
351
- - @foundrykit/primitives@0.1.2
352
- - @foundrykit/utils@0.1.2
353
-
354
- ## 0.1.1
355
-
356
- ### Patch Changes
357
-
358
- - basic test
359
- - Updated dependencies
360
- - @foundrykit/primitives@0.1.1
361
- - @foundrykit/types@0.1.1
362
- - @foundrykit/utils@0.1.1
@@ -1,223 +0,0 @@
1
- import type { ComponentConfig } from '@foundrykit/types';
2
-
3
- export const advancedSearchBarConfig: ComponentConfig = {
4
- name: 'Advanced Search Bar',
5
- description:
6
- 'Highly configurable search component with customizable input wrapper and results display',
7
- category: 'components',
8
- tags: ['search', 'input', 'popover', 'advanced', 'configurable'],
9
- preview: {
10
- type: 'static',
11
- html: '<div class="flex h-12 w-full items-center rounded-md border border-gray-300 bg-gray-100 px-3"><div class="mr-2 h-3 w-3 rounded-full border border-gray-400"></div><div class="h-2 w-12 rounded bg-gray-400"></div></div>',
12
- },
13
- variants: [
14
- {
15
- name: 'Basic Search',
16
- description:
17
- 'Simple search with input and results - shows all results initially',
18
- code: `
19
- import { AdvancedSearchProvider, AdvancedSearchBar, SearchInput, SearchResults } from "@/components/ui/advanced-search-bar"
20
-
21
- <AdvancedSearchProvider
22
- onSearch={async (query) => {
23
- // Your search logic here
24
- return searchResults;
25
- }}
26
- onResultSelect={(result) => {
27
- console.log('Selected:', result);
28
- }}
29
- emptyStateBehaviour="show-all-results"
30
- initialResults={allDestinations}
31
- >
32
- <AdvancedSearchBar>
33
- <SearchInput
34
- placeholder="Search destinations..."
35
- size="md"
36
- variant="default"
37
- />
38
- <SearchResults
39
- size="lg"
40
- showEmptyState={true}
41
- emptyStateMessage="No destinations found."
42
- />
43
- </AdvancedSearchBar>
44
- </AdvancedSearchProvider>`,
45
- preview: {
46
- type: 'component',
47
- component: 'AdvancedSearchBarWrapper',
48
- props: {},
49
- },
50
- },
51
- {
52
- name: 'Hide Until Min Characters',
53
- description:
54
- 'Search that only shows results after typing minimum characters',
55
- code: `
56
- <AdvancedSearchProvider
57
- onSearch={async (query) => searchResults}
58
- onResultSelect={(result) => handleSelection(result)}
59
- minQueryLength={3}
60
- emptyStateBehaviour="hide-until-min-chars"
61
- >
62
- <AdvancedSearchBar>
63
- <SearchInput
64
- placeholder="Type at least 3 characters..."
65
- size="md"
66
- />
67
- <SearchResults />
68
- </AdvancedSearchBar>
69
- </AdvancedSearchProvider>`,
70
- preview: {
71
- type: 'component',
72
- component: 'AdvancedSearchBarWrapper',
73
- props: {
74
- minQueryLength: 3,
75
- emptyStateBehaviour: 'hide-until-min-chars',
76
- },
77
- },
78
- },
79
- {
80
- name: 'Show Empty Message',
81
- description: 'Search that shows "No results found" message when empty',
82
- code: `
83
- <AdvancedSearchProvider
84
- onSearch={async (query) => searchResults}
85
- onResultSelect={(result) => handleSelection(result)}
86
- emptyStateBehaviour="show-empty-message"
87
- >
88
- <AdvancedSearchBar>
89
- <SearchInput placeholder="Search anything..." />
90
- <SearchResults
91
- emptyStateMessage="No results found for your search."
92
- />
93
- </AdvancedSearchBar>
94
- </AdvancedSearchProvider>`,
95
- preview: {
96
- type: 'component',
97
- component: 'AdvancedSearchBarWrapper',
98
- props: {
99
- emptyStateBehaviour: 'show-empty-message',
100
- },
101
- },
102
- },
103
- {
104
- name: 'Compound Pattern',
105
- description:
106
- 'Highly composable search using compound components with sections',
107
- code: `
108
- import * as SearchBar from "@/components/ui/advanced-search-bar"
109
-
110
- <SearchBar.Provider
111
- onSearch={async (query) => searchResults}
112
- onResultSelect={(result) => handleSelection(result)}
113
- >
114
- <SearchBar.Root>
115
- <SearchBar.Input placeholder="Search anything..." />
116
- <SearchBar.Results>
117
- <SearchBar.Section title="Popular Searches">
118
- <SearchBar.Item result={{ id: '1', title: 'Beach Holidays', type: 'suggestion' }} />
119
- <SearchBar.Item result={{ id: '2', title: 'Christmas Holidays', type: 'suggestion' }} />
120
- </SearchBar.Section>
121
- <SearchBar.Section title="Results">
122
- <SearchBar.Item result={{ id: '3', title: 'Adventure Trip', description: 'Amazing adventure', type: 'result' }} />
123
- </SearchBar.Section>
124
- </SearchBar.Results>
125
- </SearchBar.Root>
126
- </SearchBar.Provider>`,
127
- preview: {
128
- type: 'component',
129
- component: 'AdvancedSearchBarWrapper',
130
- props: {},
131
- },
132
- },
133
- {
134
- name: 'Custom Sizes & Variants',
135
- description: 'Different input sizes and visual variants',
136
- code: `
137
- <AdvancedSearchProvider onSearch={mockSearch} onResultSelect={handleSelect}>
138
- <AdvancedSearchBar>
139
- <SearchInput
140
- placeholder="Large search input..."
141
- size="lg"
142
- variant="filled"
143
- showSearchIcon={true}
144
- showClearButton={true}
145
- />
146
- <SearchResults size="xl" />
147
- </AdvancedSearchBar>
148
- </AdvancedSearchProvider>`,
149
- preview: {
150
- type: 'component',
151
- component: 'AdvancedSearchBarWrapper',
152
- props: {
153
- size: 'lg',
154
- variant: 'filled',
155
- },
156
- },
157
- },
158
- {
159
- name: 'Inline Mode',
160
- description:
161
- 'Results render in normal document flow inside a shared surface — no absolute positioning or z-index required',
162
- code: `
163
- <AdvancedSearchProvider onSearch={mockSearch} onResultSelect={handleSelect} emptyStateBehaviour="show-all-results" initialResults={allResults}>
164
- {/* The frosted/gradient surface wraps both input and results naturally */}
165
- <div className="rounded-xl border bg-white/60 p-4 shadow-sm backdrop-blur-sm">
166
- <AdvancedSearchBar
167
- resultsMode="inline"
168
- resultsClassName="border-t"
169
- data-state /* "open" | "closed" — use for CSS transitions */
170
- >
171
- <SearchInput placeholder="Search..." showSearchIcon showClearButton />
172
- <SearchResults showEmptyState emptyStateMessage="No results." />
173
- </AdvancedSearchBar>
174
- </div>
175
- </AdvancedSearchProvider>`,
176
- preview: {
177
- type: 'component',
178
- component: 'AdvancedSearchBarWrapper',
179
- props: {},
180
- },
181
- },
182
- {
183
- name: 'Custom Trigger Button',
184
- description: 'Search with custom trigger button instead of input',
185
- code: `
186
- <AdvancedSearchProvider onSearch={mockSearch} onResultSelect={handleSelect}>
187
- <AdvancedSearchBar>
188
- <SearchTrigger asChild>
189
- <Button variant="outline" className="w-full justify-start">
190
- <Search className="mr-2 h-4 w-4" />
191
- Click to search...
192
- </Button>
193
- </SearchTrigger>
194
- <SearchResults />
195
- </AdvancedSearchBar>
196
- </AdvancedSearchProvider>`,
197
- preview: {
198
- type: 'component',
199
- component: 'AdvancedSearchBarWrapper',
200
- props: {
201
- useCustomTrigger: true,
202
- },
203
- },
204
- },
205
- ],
206
- dependencies: [
207
- 'input',
208
- 'button',
209
- 'popover',
210
- 'card',
211
- 'badge',
212
- 'separator',
213
- 'utils',
214
- 'hooks',
215
- 'types',
216
- ],
217
- packageDependencies: [
218
- 'lucide-react',
219
- '@radix-ui/react-slot',
220
- 'class-variance-authority',
221
- ],
222
- files: ['components/advanced-search-bar/index.tsx'],
223
- };