@uob-web-and-digital/component-library 0.0.54 → 0.0.55
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/components/organisms/SearchCourses/SearchCourses.d.ts +15 -11
- package/dist/index.d.ts +15 -11
- package/dist/main.css +1 -1
- package/dist/main.js +5 -5
- package/dist/module.js +1 -1
- package/package.json +1 -1
- /package/dist/components/molecules/CardModuleCard/{CardModule.Card.stories.d.ts → CardModuleCard.stories.d.ts} +0 -0
|
@@ -19,6 +19,10 @@ export interface SearchCoursesProps {
|
|
|
19
19
|
* Title for module
|
|
20
20
|
*/
|
|
21
21
|
title?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Optional description for module
|
|
24
|
+
*/
|
|
25
|
+
description?: string;
|
|
22
26
|
/**
|
|
23
27
|
* Default value to use for the search term
|
|
24
28
|
*/
|
|
@@ -27,10 +31,6 @@ export interface SearchCoursesProps {
|
|
|
27
31
|
* Placeholder text
|
|
28
32
|
*/
|
|
29
33
|
placeholder: string;
|
|
30
|
-
/**
|
|
31
|
-
* Facet of the filter
|
|
32
|
-
*/
|
|
33
|
-
facet?: string;
|
|
34
34
|
/**
|
|
35
35
|
* Display name of the filter
|
|
36
36
|
*/
|
|
@@ -47,10 +47,6 @@ export interface SearchCoursesProps {
|
|
|
47
47
|
* Default value for filter
|
|
48
48
|
*/
|
|
49
49
|
defaultFilter?: string;
|
|
50
|
-
/**
|
|
51
|
-
* Results url
|
|
52
|
-
*/
|
|
53
|
-
resultsUrl: string;
|
|
54
50
|
/**
|
|
55
51
|
* The wrapped version of this component is used for Hero
|
|
56
52
|
*/
|
|
@@ -65,11 +61,19 @@ export interface SearchCoursesProps {
|
|
|
65
61
|
onGrid?: boolean;
|
|
66
62
|
titleTag?: 'h1' | 'h2';
|
|
67
63
|
/**
|
|
68
|
-
*
|
|
64
|
+
* Function to handle what happen whens when form is submitted
|
|
65
|
+
*/
|
|
66
|
+
formSubmitHandler?: () => void | null;
|
|
67
|
+
/**
|
|
68
|
+
* Function to handle what happen whens when filters change
|
|
69
|
+
*/
|
|
70
|
+
filterChangeHandler?: () => void | null;
|
|
71
|
+
/**
|
|
72
|
+
* Function to handle what happen whens when search term changes
|
|
69
73
|
*/
|
|
70
|
-
|
|
74
|
+
searchTermChangeHandler?: () => void | null;
|
|
71
75
|
}
|
|
72
76
|
/**
|
|
73
77
|
* Search component
|
|
74
78
|
*/
|
|
75
|
-
export default function SearchCourses({ theme, inverse, title, defaultSearchTerm, placeholder,
|
|
79
|
+
export default function SearchCourses({ theme, inverse, title, description, defaultSearchTerm, placeholder, filterTitle, filterFieldName, filterOptions, defaultFilter, wrapped, fullWidth, onGrid, titleTag, formSubmitHandler, filterChangeHandler, searchTermChangeHandler }: SearchCoursesProps): ReactElement;
|
package/dist/index.d.ts
CHANGED
|
@@ -425,6 +425,10 @@ interface SearchCoursesProps {
|
|
|
425
425
|
* Title for module
|
|
426
426
|
*/
|
|
427
427
|
title?: string;
|
|
428
|
+
/**
|
|
429
|
+
* Optional description for module
|
|
430
|
+
*/
|
|
431
|
+
description?: string;
|
|
428
432
|
/**
|
|
429
433
|
* Default value to use for the search term
|
|
430
434
|
*/
|
|
@@ -433,10 +437,6 @@ interface SearchCoursesProps {
|
|
|
433
437
|
* Placeholder text
|
|
434
438
|
*/
|
|
435
439
|
placeholder: string;
|
|
436
|
-
/**
|
|
437
|
-
* Facet of the filter
|
|
438
|
-
*/
|
|
439
|
-
facet?: string;
|
|
440
440
|
/**
|
|
441
441
|
* Display name of the filter
|
|
442
442
|
*/
|
|
@@ -453,10 +453,6 @@ interface SearchCoursesProps {
|
|
|
453
453
|
* Default value for filter
|
|
454
454
|
*/
|
|
455
455
|
defaultFilter?: string;
|
|
456
|
-
/**
|
|
457
|
-
* Results url
|
|
458
|
-
*/
|
|
459
|
-
resultsUrl: string;
|
|
460
456
|
/**
|
|
461
457
|
* The wrapped version of this component is used for Hero
|
|
462
458
|
*/
|
|
@@ -471,14 +467,22 @@ interface SearchCoursesProps {
|
|
|
471
467
|
onGrid?: boolean;
|
|
472
468
|
titleTag?: 'h1' | 'h2';
|
|
473
469
|
/**
|
|
474
|
-
*
|
|
470
|
+
* Function to handle what happen whens when form is submitted
|
|
471
|
+
*/
|
|
472
|
+
formSubmitHandler?: () => void | null;
|
|
473
|
+
/**
|
|
474
|
+
* Function to handle what happen whens when filters change
|
|
475
|
+
*/
|
|
476
|
+
filterChangeHandler?: () => void | null;
|
|
477
|
+
/**
|
|
478
|
+
* Function to handle what happen whens when search term changes
|
|
475
479
|
*/
|
|
476
|
-
|
|
480
|
+
searchTermChangeHandler?: () => void | null;
|
|
477
481
|
}
|
|
478
482
|
/**
|
|
479
483
|
* Search component
|
|
480
484
|
*/
|
|
481
|
-
declare function SearchCourses({ theme, inverse, title, defaultSearchTerm, placeholder,
|
|
485
|
+
declare function SearchCourses({ theme, inverse, title, description, defaultSearchTerm, placeholder, filterTitle, filterFieldName, filterOptions, defaultFilter, wrapped, fullWidth, onGrid, titleTag, formSubmitHandler, filterChangeHandler, searchTermChangeHandler }: SearchCoursesProps): ReactElement;
|
|
482
486
|
|
|
483
487
|
interface SignPostProps {
|
|
484
488
|
/**
|