@czi-sds/mcp 0.5.2 → 0.5.4

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 (42) hide show
  1. package/data/component-list.json +1 -0
  2. package/data/component-props/NavigationHeader.json +4 -0
  3. package/data/tailwind.json +25 -25
  4. package/data/zeroheight-cache.json +5065 -1
  5. package/data/zeroheight-exports/Accordion.md +79 -22
  6. package/data/zeroheight-exports/Banner.md +102 -10
  7. package/data/zeroheight-exports/Buttons.md +1010 -1461
  8. package/data/zeroheight-exports/Callout.md +164 -11
  9. package/data/zeroheight-exports/Colors.md +1164 -41
  10. package/data/zeroheight-exports/Content-Card.md +148 -0
  11. package/data/zeroheight-exports/Control-Inputs.md +769 -72
  12. package/data/zeroheight-exports/Corners.md +8 -15
  13. package/data/zeroheight-exports/Dialog.md +190 -14
  14. package/data/zeroheight-exports/Downloads.md +116 -0
  15. package/data/zeroheight-exports/Dropdown-Input.md +612 -16
  16. package/data/zeroheight-exports/Dropdown-Menus.md +935 -0
  17. package/data/zeroheight-exports/Field-Inputs.md +430 -9
  18. package/data/zeroheight-exports/Filters.md +232 -9
  19. package/data/zeroheight-exports/Getting-Started.md +7 -9
  20. package/data/zeroheight-exports/Hero.md +152 -0
  21. package/data/zeroheight-exports/Icons.md +1854 -218
  22. package/data/zeroheight-exports/Intent.md +40 -0
  23. package/data/zeroheight-exports/Link.md +52 -6
  24. package/data/zeroheight-exports/Lists.md +360 -6
  25. package/data/zeroheight-exports/Loading-Indicator.md +6 -2
  26. package/data/zeroheight-exports/Navigation.md +324 -8
  27. package/data/zeroheight-exports/Notification.md +166 -16
  28. package/data/zeroheight-exports/Panel.md +68 -16
  29. package/data/zeroheight-exports/README.md +17 -19
  30. package/data/zeroheight-exports/Responsive-Design.md +52 -0
  31. package/data/zeroheight-exports/Search-Input.md +40 -2
  32. package/data/zeroheight-exports/Search.md +232 -2
  33. package/data/zeroheight-exports/Segmented-Control.md +34 -9
  34. package/data/zeroheight-exports/Table.md +452 -51
  35. package/data/zeroheight-exports/Tabs.md +534 -11
  36. package/data/zeroheight-exports/Tags.md +504 -14
  37. package/data/zeroheight-exports/Text-Link.md +90 -6
  38. package/data/zeroheight-exports/Theming.md +36 -6
  39. package/data/zeroheight-exports/Tooltips.md +453 -18
  40. package/data/zeroheight-exports/Typography.md +64 -32
  41. package/package.json +3 -3
  42. package/data/zeroheight-exports/Dropdown-Menu.md +0 -3883
@@ -30,6 +30,10 @@ Header Navigation has been designed to collapse into a hamburger menu on narrow
30
30
  | --------------------- | -------------------- | -------------------- |
31
31
  | `--sds-breakpoint-sm` | `$sds-breakpoint-sm` | `breakpoints.sds-sm` |
32
32
 
33
+ **Breakpoint_small**
34
+
35
+ ---
36
+
33
37
  #### Medium
34
38
 
35
39
  _Screens between 512px-1023px wide_
@@ -42,6 +46,10 @@ Depending on the number of nav items in the Header Navigation it will either col
42
46
  | --------------------- | -------------------- | -------------------- |
43
47
  | `--sds-breakpoint-md` | `$sds-breakpoint-md` | `breakpoints.sds-md` |
44
48
 
49
+ **Breakpoint_medium**
50
+
51
+ ---
52
+
45
53
  #### Large
46
54
 
47
55
  _Screens >1024px wide_
@@ -52,6 +60,10 @@ Large breakpoint will be used when applications are viewed on large laptops, des
52
60
  | --------------------- | -------------------- | -------------------- |
53
61
  | `--sds-breakpoint-lg` | `$sds-breakpoint-lg` | `breakpoints.sds-lg` |
54
62
 
63
+ **Breakpoint_large**
64
+
65
+ ---
66
+
55
67
  ### Typography
56
68
 
57
69
  SDS has two sets of typography, one for narrow screens and one for wide. Narrow screen typography is used when applications are viewed at the Small breakpoint (screen widths of less than 512px) and wide screen typography is used when applications are viewed at Medium or Large breakpoints (screen widths of 512px or greater).
@@ -63,18 +75,58 @@ Below are a few visual examples of the differences. See the Typography section f
63
75
  | Header XXL – wide | Header XXL – narrow |
64
76
  | :---------------- | :------------------ |
65
77
 
78
+ **headerXxl_wide**
79
+
80
+ ---
81
+
82
+ **headerXxl_narrow**
83
+
84
+ ---
85
+
66
86
  | Body L – wide | Body L – narrow |
67
87
  | :------------ | :-------------- |
68
88
 
89
+ **bodyL_wide**
90
+
91
+ ---
92
+
93
+ **bodyL_narrow**
94
+
95
+ ---
96
+
69
97
  | Caps XXS – wide | Caps XXS – narrow |
70
98
  | :-------------- | :---------------- |
71
99
 
100
+ **capsXxs_wide**
101
+
102
+ ---
103
+
104
+ **capsXxs_narrow**
105
+
106
+ ---
107
+
72
108
  | Tabular S – wide | Tabular S – narrow |
73
109
  | :--------------- | :----------------- |
74
110
 
111
+ **tabularS_wide**
112
+
113
+ ---
114
+
115
+ **tabularS_narrow**
116
+
117
+ ---
118
+
75
119
  | Code S – wide | Code S – narrow |
76
120
  | :------------ | :-------------- |
77
121
 
122
+ **codeS_wide**
123
+
124
+ ---
125
+
126
+ **codeS_narrow**
127
+
128
+ ---
129
+
78
130
  ## Code
79
131
 
80
132
  ## Overview
@@ -16,7 +16,25 @@ Click on each state below to enter inspect view and get details on its code attr
16
16
  | **Default** | **Hover** | **Default** | **Focus** | **Disabled** |
17
17
  | ----------- | --------- | ----------- | --------- | ------------ |
18
18
 
19
+ **InputSearch**
19
20
 
21
+ ---
22
+
23
+ **InputSearch**
24
+
25
+ ---
26
+
27
+ **InputSearch**
28
+
29
+ ---
30
+
31
+ **InputSearch**
32
+
33
+ ---
34
+
35
+ **InputSearch**
36
+
37
+ ---
20
38
 
21
39
  ### Small Search Input
22
40
 
@@ -27,13 +45,35 @@ Used in napari.org for searches within a given page.
27
45
  | **Default** | **Hover** | **Default** | **Focus** | **Disabled** |
28
46
  | ----------- | --------- | ----------- | --------- | ------------ |
29
47
 
48
+ **InputSearch**
49
+
50
+ ---
51
+
52
+ **InputSearch**
53
+
54
+ ---
55
+
56
+ **InputSearch**
57
+
58
+ ---
59
+
60
+ **InputSearch**
61
+
62
+ ---
63
+
64
+ **InputSearch**
65
+
66
+ ---
67
+
30
68
  ---
31
69
 
32
70
  ### Search Input Spacing
33
71
 
34
72
  These rules establish how much margin should exist between and around elements.
35
73
 
74
+ **Search Input spacing**
36
75
 
76
+ ---
37
77
 
38
78
  ## Code
39
79
 
@@ -49,5 +89,3 @@ These rules establish how much margin should exist between and around elements.
49
89
  ### InputSearch
50
90
 
51
91
  Storybook
52
-
53
-
@@ -23,7 +23,9 @@ Search is a flexible way for users to find data of interest or filter down their
23
23
 
24
24
  Search results are displayed on the current page by filtering down the visible content within the searchable area(s) to show matches only. This search is the most common pattern; it is used both at the component and the page levels.
25
25
 
26
+ **napari hub + org_On-page Results flow_Overview**
26
27
 
28
+ ---
27
29
 
28
30
  ---
29
31
 
@@ -33,20 +35,26 @@ It is recommended to position your Search Input at the top level of the content
33
35
 
34
36
  For example, if the search will display results for a list of plugins (1), position the Search Input at the top of the list (2).
35
37
 
38
+ **On-page Results – 1**
39
+
40
+ ---
41
+
36
42
  #### **2. Search Initiated by User**
37
43
 
38
44
  Search is initiated when the user clicks a button, hits “enter”, or completes some other user action.
39
45
 
40
46
  This method is recommended when search results must be fetched from the backend, or when the user needs to set up other specifications before initiating the search.
41
47
 
42
-
43
-
44
48
  #### **3.** Results Displayed in Searched Content Area
45
49
 
46
50
  Results are displayed by filtering the content in the searchable area (1) so that only search results are visible.
47
51
 
48
52
  If there are no results, it is recommended that a “No Results” blank state is displayed in the content area instead.
49
53
 
54
+ **On-page Results – 3**
55
+
56
+ ---
57
+
50
58
  #### 4. User Takes Action on Results
51
59
 
52
60
  Depending on the product and the user’s workflow, users may take a number of next actions on the results, possibly including:
@@ -56,6 +64,10 @@ Depending on the product and the user’s workflow, users may take a number of n
56
64
  - Filter search results (3).
57
65
  - Interact with results, such as selecting a single result (4).
58
66
 
67
+ **On-page Results – 4**
68
+
69
+ ---
70
+
59
71
  ---
60
72
 
61
73
  ### Use Case Examples
@@ -79,7 +91,9 @@ That being said, for the On-page Results flow, keep in mind:
79
91
 
80
92
  Search results are displayed on a different page than where the search was originally initiated. Depending on the use case, this may be a unique “Results” page, or an existing page where the data is usually located. The Results Page flow is often combined with the On-page Results flow. Learn more about Combining Search Types.
81
93
 
94
+ **napari hub + org_Results Page flow_Overview**
82
95
 
96
+ ---
83
97
 
84
98
  ---
85
99
 
@@ -89,7 +103,9 @@ It is recommended to position Search Inputs at the top level of the content the
89
103
 
90
104
  For example, if the search will display results from across the whole site (1), position the Search Input in a top-level navigation or outside of the page content hierarchy (2).
91
105
 
106
+ **Results Page – 1**
92
107
 
108
+ ---
93
109
 
94
110
  #### 2. **Search Initiated by User**
95
111
 
@@ -97,7 +113,9 @@ Search is initiated when the user clicks a button (1), hits “enter” (2), or
97
113
 
98
114
  Because results will be displayed on a new page, Live Search is not recommended.
99
115
 
116
+ **Results Page – 2**
100
117
 
118
+ ---
101
119
 
102
120
  #### 3. Results Displayed on the Results page
103
121
 
@@ -107,7 +125,9 @@ The results page format depends on the product's use case and content. In the ex
107
125
 
108
126
  If there are no results, it is recommended to display a bank state on the results page.
109
127
 
128
+ **Results Page – 3**
110
129
 
130
+ ---
111
131
 
112
132
  #### 4. User Takes Action on Results
113
133
 
@@ -117,7 +137,9 @@ Depending on the product and the user’s workflow, they may take a number of ne
117
137
  - Interact with results, like drilling down into a single result (2) .
118
138
  - Filter or Sort Results.
119
139
 
140
+ **Results Page – 4**
120
141
 
142
+ ---
121
143
 
122
144
  ---
123
145
 
@@ -137,8 +159,16 @@ This section will describe search in some use cases currently used across CZI pr
137
159
 
138
160
  When searching the Menu Items within a Dropdown Menu, it is recommended to use the On-Page Results flow type. Why? Think of the Dropdown Menu as the “page” and the Menu Items as the content being searched. As the user searches, the content is filtered down without leaving the open Dropdown Menu.
139
161
 
162
+ **Search within Dropdown Menu flow**
163
+
164
+ ---
165
+
140
166
  The following behaviors are recommended for displaying search results within a Dropdown Menu.
141
167
 
168
+ **Search within Dropdown Menu behavior**
169
+
170
+ ---
171
+
142
172
  ## Other Considerations
143
173
 
144
174
  | Search is a complex component, and is highly subjective to each product's use case. While it's impossible to support and document every use case, here is a collection of patterns that may be useful to consider when implementing it. The patterns detailed below have not been developed by the SDS team and are simply examples pulled from products that utilize the SDS components. | | **Jump to pattern:** Combining Search Types Supporting User Behavior |
@@ -154,12 +184,32 @@ Depending on the use case, there may be a need to combine multiple flow types. H
154
184
 
155
185
  In most use cases for the Results Page flow, it can be beneficial to provide users with a way to modify their search results by implementing the On-page Results flow within a Results Page design.
156
186
 
187
+ **Results Page + On-page Results flow**
188
+
189
+ ---
190
+
157
191
  ---
158
192
 
159
193
  ## Patterns to Support User Behavior
160
194
 
161
195
  Below are some example behavior patterns worth considering to help support users in their searching. Evaluate if implementing these will help users’ workflows and if the product can support any technical requirements of implementation.
162
196
 
197
+ **Display Search Results Count**
198
+
199
+ ---
200
+
201
+ **Highlight Search Results**
202
+
203
+ ---
204
+
205
+ **Surface Deep Results**
206
+
207
+ ---
208
+
209
+ **Sort Results by a Display Order**
210
+
211
+ ---
212
+
163
213
  ---
164
214
 
165
215
  Search is a flexible way for users to find data of interest or filter down their data by a keyword. This allows users to take action on the available data without the distraction of irrelevant information.
@@ -179,6 +229,10 @@ CZ GEN EPI only uses the On-page Results flow pattern for adding search or filte
179
229
 
180
230
  Search results are displayed on the current page by filtering down the visible content within the searchable area(s) to show matches only. This search is the most common pattern; it is used both at the component and the page levels.
181
231
 
232
+ **CZ GE_On-page Results flow_Overview**
233
+
234
+ ---
235
+
182
236
  ---
183
237
 
184
238
  #### **1. User types keyword into Search Input**
@@ -187,6 +241,10 @@ It is recommended to position the Search Input at the top level of the content t
187
241
 
188
242
  For example, if the search will display results for a single Table (1), position the Search Input at the top of the table (2).
189
243
 
244
+ **On-page Results – 1**
245
+
246
+ ---
247
+
190
248
  #### **2A. Search Initiated Automatically (Live Search)**
191
249
 
192
250
  Otherwise known as "Live Search," as the user types, the app automatically initiates the search with each keystroke or after a specified delay in keystrokes.
@@ -205,7 +263,9 @@ Results are displayed by filtering the content in the searchable area (1) so tha
205
263
 
206
264
  If there are no results, it is recommended that a “No Results” blank state is displayed in the content area instead.
207
265
 
266
+ **On-page Results – 3**
208
267
 
268
+ ---
209
269
 
210
270
  **4. User Takes Action on Results**
211
271
 
@@ -216,6 +276,10 @@ Depending on the product and the user’s workflow, users may take a number of n
216
276
  - Sort search results (3).
217
277
  - Interact with results, like drilling down into a single result, performing actions upon results, etc. (4).
218
278
 
279
+ **On-page Results – 4**
280
+
281
+ ---
282
+
219
283
  ---
220
284
 
221
285
  ### Use Case Examples
@@ -240,14 +304,38 @@ This section will describe search in some use cases currently used across CZI pr
240
304
 
241
305
  When searching the Menu Items within a Dropdown Menu, it is recommended to use the On-Page Results flow type. Why? Think of the Dropdown Menu as the “page” and the Menu Items as the content being searched. As the user searches, the content is filtered down without leaving the open Dropdown Menu.
242
306
 
307
+ **Search within Dropdown Menu flow**
308
+
309
+ ---
310
+
243
311
  The following behaviors are recommended for displaying search results within a Dropdown Menu.
244
312
 
313
+ **Search within Dropdown Menu behavior**
314
+
315
+ ---
316
+
245
317
  ## Other Considerations
246
318
 
247
319
  ## Patterns to Support User Behavior
248
320
 
249
321
  Below are some example behavior patterns worth considering to help support users in their searching. Evaluate if implementing these will help users’ workflows and if the product can support any technical requirements of implementation.
250
322
 
323
+ **Display Search Results Count**
324
+
325
+ ---
326
+
327
+ **Highlight Search Results**
328
+
329
+ ---
330
+
331
+ **Surface Deep Results**
332
+
333
+ ---
334
+
335
+ **Sort Results by a Display Order**
336
+
337
+ ---
338
+
251
339
  ---
252
340
 
253
341
  Search is a flexible way for users to find data of interest or filter down their data by a keyword. This allows users to take action on the available data without the distraction of irrelevant information.
@@ -275,6 +363,10 @@ Search is a flexible way for users to find data of interest or filter down their
275
363
 
276
364
  Search results are displayed on the current page by filtering down the visible content within the searchable area(s) to show matches only. This search is the most common pattern; it is used both at the component and the page levels.
277
365
 
366
+ **CZ ID_On-page Results flow_Overview_new**
367
+
368
+ ---
369
+
278
370
  ---
279
371
 
280
372
  #### **1. User types keyword into Search Input**
@@ -283,6 +375,10 @@ It is recommended to position the Search Input at the top level of the content t
283
375
 
284
376
  For example, if the search will display results in tables across multiple tabs (1), position the Search Input in the header (2).
285
377
 
378
+ **On-page Results – 1**
379
+
380
+ ---
381
+
286
382
  #### **2. Search Initiated by User**
287
383
 
288
384
  Search is initiated when the user clicks a button, hits “enter”, or completes some other user action.
@@ -295,6 +391,10 @@ Results are displayed by filtering the content in the searchable area (1) so tha
295
391
 
296
392
  If there are no results, it is recommended that a “No Results” blank state is displayed in the content area instead.
297
393
 
394
+ **On-page Results – 3**
395
+
396
+ ---
397
+
298
398
  #### **4. User Takes Action on Results**
299
399
 
300
400
  Depending on the product and the user’s workflow, users may take a number of next actions on the results, possibly including:
@@ -304,6 +404,10 @@ Depending on the product and the user’s workflow, users may take a number of n
304
404
  - Sort search results (3).
305
405
  - Interact with results, like drilling down into a single result, performing actions upon results, etc. (4).
306
406
 
407
+ **On-page Results – 4**
408
+
409
+ ---
410
+
307
411
  ---
308
412
 
309
413
  ### Use Case Examples
@@ -324,6 +428,10 @@ That being said, for the On-page Results flow, keep in mind that paginated vs in
324
428
 
325
429
  Search results are displayed inside a Dropdown Menu that appears below the Search Input. The user will remain on the same page until they select a result from the Dropdown Menu.
326
430
 
431
+ **CZ ID_Results Dropdown flow_Overview**
432
+
433
+ ---
434
+
327
435
  ---
328
436
 
329
437
  #### **1. User Types Keyword into Search Component**
@@ -332,6 +440,10 @@ It is recommended to position the Search Input at the top level of the content t
332
440
 
333
441
  For example, if the search will display results from across multiple tabs (1), position the Search Input in the header (2).
334
442
 
443
+ **Results Dropdown – 1**
444
+
445
+ ---
446
+
335
447
  #### **2. Search Initiated (Live Update)**
336
448
 
337
449
  As the user types, the app automatically initiates the search with each keystroke.
@@ -344,6 +456,10 @@ Instead of updating the searched content area, results are displayed in a Dropdo
344
456
 
345
457
  If there are no results, it is recommended to display a bank state in the Dropdown Menu instead.
346
458
 
459
+ **Results Dropdown – 3**
460
+
461
+ ---
462
+
347
463
  #### **4. User Takes Action on Results**
348
464
 
349
465
  Depending on the product and the user’s workflow, they may take a number of next actions on the results, possibly including:
@@ -352,6 +468,10 @@ Depending on the product and the user’s workflow, they may take a number of ne
352
468
  - Interact with results, such as drilling down into a single result (2) .
353
469
  - Initiate a different type of search flow. For example, the user clicks “enter” to filter page by search keyword (3). See Combining Search Types section to learn more.
354
470
 
471
+ **Results Dropdown – 4**
472
+
473
+ ---
474
+
355
475
  ## Example Use Cases
356
476
 
357
477
  ## Example Use Cases
@@ -362,9 +482,15 @@ This section will describe search in some use cases currently used across CZI pr
362
482
 
363
483
  When searching the Menu Items within a Dropdown Menu, it is recommended to use the On-Page Results flow type. Why? Think of the Dropdown Menu as the “page” and the Menu Items as the content being searched. As the user searches, the content is filtered down without leaving the open Dropdown Menu.
364
484
 
485
+ **Search within Dropdown Menu flow**
486
+
487
+ ---
488
+
365
489
  The following behaviors are recommended for displaying search results within a Dropdown Menu.
366
490
 
491
+ **Search within Dropdown Menu behavior**
367
492
 
493
+ ---
368
494
 
369
495
  ## Other Considerations
370
496
 
@@ -381,12 +507,32 @@ Depending on the use case, there may be a need to combine multiple flow types. H
381
507
 
382
508
  CZ ID combines the Results Dropdown and the On-page Results flows. This allows users to jump to a specific result or filter the workspace by the search, depending on their needs.
383
509
 
510
+ **Results Dropdown + On-Page Results flow**
511
+
512
+ ---
513
+
384
514
  ---
385
515
 
386
516
  ## Patterns to Support User Behavior
387
517
 
388
518
  Below are some example behavior patterns worth considering to help support users in their searching. Evaluate if implementing these will help users’ workflows and if the product can support any technical requirements of implementation.
389
519
 
520
+ **Display Search Results Count**
521
+
522
+ ---
523
+
524
+ **Highlight Search Results**
525
+
526
+ ---
527
+
528
+ **Surface Deep Results**
529
+
530
+ ---
531
+
532
+ **Sort Results by a Display Order**
533
+
534
+ ---
535
+
390
536
  ---
391
537
 
392
538
  Search is a flexible way for users to find data of interest or filter down their data by a keyword. This allows users to take action on the available data without the distraction of irrelevant information.
@@ -416,6 +562,10 @@ Search results are displayed on the current page by filtering down the visible c
416
562
 
417
563
  The example flow below uses CZ GEN EPI to show the on-page refresh of content that occurs when using the On-page Results flow.
418
564
 
565
+ **SDS_On-page Results flow_Overview**
566
+
567
+ ---
568
+
419
569
  ---
420
570
 
421
571
  #### 1. User types keyword into Search Input
@@ -424,6 +574,10 @@ It is recommended to position the Search Input at the top level of the content t
424
574
 
425
575
  For example, if the search will display results for a single Table (1), position the Search Input at the top of the table (2).
426
576
 
577
+ **On-page Results – 1**
578
+
579
+ ---
580
+
427
581
  #### 2A. Search Initiated Automatically (Live Search)
428
582
 
429
583
  Otherwise known as "Live Search," as the user types, the app automatically initiates the search with each keystroke or after a specified delay in keystrokes.
@@ -442,6 +596,10 @@ Results are displayed by filtering the content in the searchable area (1) so tha
442
596
 
443
597
  If there are no results, it is recommended that a “No Results” blank state is displayed in the content area instead.
444
598
 
599
+ **On-page Results – 3**
600
+
601
+ ---
602
+
445
603
  #### 4. User Takes Action on Results
446
604
 
447
605
  Depending on the product and the user’s workflow, users may take a number of next actions on the results, possibly including:
@@ -451,6 +609,10 @@ Depending on the product and the user’s workflow, users may take a number of n
451
609
  - Sort search results (3).
452
610
  - Interact with results, like drilling down into a single result, performing actions upon results, etc. (4).
453
611
 
612
+ **On-page Results – 4**
613
+
614
+ ---
615
+
454
616
  ---
455
617
 
456
618
  ### Use Case Examples
@@ -478,6 +640,10 @@ Search results are displayed inside a Dropdown Menu that appears below the Searc
478
640
 
479
641
  The example flow below uses CZ ID to show the contents of a Dropdown Menu filtering down to include only the Menu Items that match the keyword entered into the Search Input.
480
642
 
643
+ **SDS_Results Dropdown flow_Overview**
644
+
645
+ ---
646
+
481
647
  ---
482
648
 
483
649
  #### 1. User Types Keyword into Search Component
@@ -486,6 +652,10 @@ It is recommended to position the Search Input at the top level of the content t
486
652
 
487
653
  For example, if the search will display results from across multiple tabs (1), position the Search Input in the header (2).
488
654
 
655
+ **Results Dropdown – 1**
656
+
657
+ ---
658
+
489
659
  #### 2. Search Initiated (Live Update)
490
660
 
491
661
  As the user types, the app automatically initiates the search with each keystroke.
@@ -498,6 +668,10 @@ Instead of updating the searched content area, results are displayed in a Dropdo
498
668
 
499
669
  If there are no results, it is recommended to display a bank state in the Dropdown Menu instead.
500
670
 
671
+ **Results Dropdown – 3**
672
+
673
+ ---
674
+
501
675
  #### 4. User Takes Action on Results
502
676
 
503
677
  Depending on the product and the user’s workflow, they may take a number of next actions on the results, possibly including:
@@ -506,6 +680,10 @@ Depending on the product and the user’s workflow, they may take a number of ne
506
680
  - Interact with results, such as drilling down into a single result (2) .
507
681
  - Initiate a different type of search flow. For example, the user clicks “enter” to filter page by search keyword (3). See Combining Search Types section to learn more.
508
682
 
683
+ **Results Dropdown – 4**
684
+
685
+ ---
686
+
509
687
  ---
510
688
 
511
689
  ## Results Page
@@ -516,6 +694,10 @@ Search results are displayed on a different page than where the search was origi
516
694
 
517
695
  The example flow below uses napari.org to show the usage of a Results Page to display the outcome of a search.
518
696
 
697
+ **SDS_Results Page flow_Overview_new**
698
+
699
+ ---
700
+
519
701
  ---
520
702
 
521
703
  #### 1. User Types Keyword into Search Component
@@ -524,12 +706,20 @@ It is recommended to position Search Inputs at the top level of the content the
524
706
 
525
707
  For example, if the search will display results from across the whole site (1), position the Search Input in a top-level navigation or outside of the page content hierarchy (2).
526
708
 
709
+ **Results Page – 1**
710
+
711
+ ---
712
+
527
713
  #### 2. **Search Initiated by User**
528
714
 
529
715
  Search is initiated when the user clicks a button (1), hits “enter” (2), or some other user action.
530
716
 
531
717
  Because results will be displayed on a new page, Live Search is not recommended.
532
718
 
719
+ **Results Page – 2**
720
+
721
+ ---
722
+
533
723
  #### 3. Results Displayed on the Results page
534
724
 
535
725
  After the user initiates the search, they are automatically directed to a results page.
@@ -538,6 +728,10 @@ The results page format depends on the product's use case and content. In the ex
538
728
 
539
729
  If there are no results, it is recommended to display a bank state on the results page.
540
730
 
731
+ **Results Page – 3**
732
+
733
+ ---
734
+
541
735
  #### 4. User Takes Action on Results
542
736
 
543
737
  Depending on the product and the user’s workflow, they may take a number of next actions on the results, possibly including:
@@ -546,6 +740,10 @@ Depending on the product and the user’s workflow, they may take a number of ne
546
740
  - Interact with results, like drilling down into a single result (2) .
547
741
  - Filter or Sort Results.
548
742
 
743
+ **Results Page – 4**
744
+
745
+ ---
746
+
549
747
  ---
550
748
 
551
749
  ### Technical Considerations
@@ -564,8 +762,16 @@ This section will describe search in some use cases currently used across CZI pr
564
762
 
565
763
  When searching the Menu Items within a Dropdown Menu, it is recommended to use the On-Page Results flow type. Why? Think of the Dropdown Menu as the “page” and the Menu Items as the content being searched. As the user searches, the content is filtered down without leaving the open Dropdown Menu.
566
764
 
765
+ **Search within Dropdown Menu flow**
766
+
767
+ ---
768
+
567
769
  The following behaviors are recommended for displaying search results within a Dropdown Menu.
568
770
 
771
+ **Search within Dropdown Menu behavior**
772
+
773
+ ---
774
+
569
775
  ## Other Considerations
570
776
 
571
777
  | Search is a complex component, and is highly subjective to each product's use case. While it's impossible to support and document every use case, here is a collection of patterns that may be useful to consider when implementing it. The patterns detailed below have not been developed by the SDS team and are simply examples pulled from products that utilize the SDS components. **Please consider the information in this section as inspiration only.** | | **Jump to pattern:** Combining Search Types Supporting User Behavior |
@@ -581,12 +787,36 @@ Depending on the use case, there may be a need to combine multiple flow types. H
581
787
 
582
788
  In most use cases for the Results Page flow, it can be beneficial to provide users with a way to modify their search results by implementing the On-page Results flow within a Results Page design.
583
789
 
790
+ **Results Page + On-page Results flow**
791
+
792
+ ---
793
+
584
794
  ### Results Dropdown + On-page Results Flow
585
795
 
586
796
  CZ ID combines the Results Dropdown and the On-page Results flows. This allows users to jump to a specific result or filter the workspace by the search, depending on their needs.
587
797
 
798
+ **Results Dropdown + On-Page Results flow**
799
+
800
+ ---
801
+
588
802
  ---
589
803
 
590
804
  ## Patterns to Support User Behavior
591
805
 
592
806
  Below are some example behavior patterns worth considering to help support users in their searching. Evaluate if implementing these will help users’ workflows and if the product can support any technical requirements of implementation.
807
+
808
+ **Display Search Results Count**
809
+
810
+ ---
811
+
812
+ **Highlight Search Results**
813
+
814
+ ---
815
+
816
+ **Surface Deep Results**
817
+
818
+ ---
819
+
820
+ **Sort Results by a Display Order**
821
+
822
+ ---