@uob-web-and-digital/component-library 0.0.46 → 0.0.47

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.
@@ -27,6 +27,10 @@ export interface SearchCoursesProps {
27
27
  * Placeholder text
28
28
  */
29
29
  placeholder: string;
30
+ /**
31
+ * Facet of the filter
32
+ */
33
+ facet?: string;
30
34
  /**
31
35
  * Display name of the filter
32
36
  */
@@ -60,8 +64,12 @@ export interface SearchCoursesProps {
60
64
  */
61
65
  onGrid?: boolean;
62
66
  titleTag?: 'h1' | 'h2';
67
+ /**
68
+ * Use onClick event on Search button (eg to update search results on the same page)
69
+ */
70
+ useOnClickHandler?: () => void | null;
63
71
  }
64
72
  /**
65
73
  * Search component
66
74
  */
67
- export default function SearchCourses({ theme, inverse, title, defaultSearchTerm, placeholder, filterTitle, filterFieldName, filterOptions, defaultFilter, resultsUrl, wrapped, fullWidth, onGrid, titleTag }: SearchCoursesProps): ReactElement;
75
+ export default function SearchCourses({ theme, inverse, title, defaultSearchTerm, placeholder, facet, filterTitle, filterFieldName, filterOptions, defaultFilter, resultsUrl, wrapped, fullWidth, onGrid, titleTag, useOnClickHandler }: SearchCoursesProps): ReactElement;
@@ -13,6 +13,7 @@ declare const meta: {
13
13
  export default meta;
14
14
  type Story = StoryObj<typeof SearchCourses>;
15
15
  export declare const Dark: Story;
16
+ export declare const DarkFunctionNotUrl: Story;
16
17
  export declare const Light: Story;
17
18
  export declare const WithDefaultValues: Story;
18
19
  export declare const Wrapped: Story;
package/dist/index.d.ts CHANGED
@@ -433,6 +433,10 @@ interface SearchCoursesProps {
433
433
  * Placeholder text
434
434
  */
435
435
  placeholder: string;
436
+ /**
437
+ * Facet of the filter
438
+ */
439
+ facet?: string;
436
440
  /**
437
441
  * Display name of the filter
438
442
  */
@@ -466,11 +470,15 @@ interface SearchCoursesProps {
466
470
  */
467
471
  onGrid?: boolean;
468
472
  titleTag?: 'h1' | 'h2';
473
+ /**
474
+ * Use onClick event on Search button (eg to update search results on the same page)
475
+ */
476
+ useOnClickHandler?: () => void | null;
469
477
  }
470
478
  /**
471
479
  * Search component
472
480
  */
473
- declare function SearchCourses({ theme, inverse, title, defaultSearchTerm, placeholder, filterTitle, filterFieldName, filterOptions, defaultFilter, resultsUrl, wrapped, fullWidth, onGrid, titleTag }: SearchCoursesProps): ReactElement;
481
+ declare function SearchCourses({ theme, inverse, title, defaultSearchTerm, placeholder, facet, filterTitle, filterFieldName, filterOptions, defaultFilter, resultsUrl, wrapped, fullWidth, onGrid, titleTag, useOnClickHandler }: SearchCoursesProps): ReactElement;
474
482
 
475
483
  interface SignPostProps {
476
484
  /**