@nnc-digital/nnc-design-system 1.0.0-beta18 → 1.0.0-beta19

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.
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { NoResultsTemplateProps } from './NoResultsTemplate.types';
3
+ declare const NoResultsTemplate: React.FunctionComponent<NoResultsTemplateProps>;
4
+ export default NoResultsTemplate;
@@ -0,0 +1,6 @@
1
+ export interface NoResultsTemplateProps {
2
+ /**
3
+ * The type of content being searched (e.g., 'events', 'results')
4
+ */
5
+ contentType?: string;
6
+ }
@@ -0,0 +1,2 @@
1
+ export { default } from './NoResultsTemplate';
2
+ export * from './NoResultsTemplate.types';
@@ -105,6 +105,11 @@ export interface DirectoryServiceListProps {
105
105
  * Is the component in error state
106
106
  */
107
107
  isError?: boolean;
108
+ /**
109
+ * Custom HTML content to display when no results are found.
110
+ * If not provided, defaults to "No results found" message.
111
+ */
112
+ noResultsContent?: string;
108
113
  }
109
114
  export interface DirectoryCategory {
110
115
  /**
@@ -109,6 +109,11 @@ export interface EventListProps {
109
109
  * Should old events be hidden automatically? Defaults to true.
110
110
  */
111
111
  hideOldEvents?: boolean;
112
+ /**
113
+ * Custom HTML content to display when no events are found.
114
+ * If not provided, defaults to "No events found" message.
115
+ */
116
+ noResultsContent?: string;
112
117
  }
113
118
  export interface EventCategory {
114
119
  /**
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { NoResultsTemplateProps } from './NoResultsTemplate.types';
3
+ declare const NoResultsTemplate: React.FunctionComponent<NoResultsTemplateProps>;
4
+ export default NoResultsTemplate;
@@ -0,0 +1,6 @@
1
+ export interface NoResultsTemplateProps {
2
+ /**
3
+ * The type of content being searched (e.g., 'events', 'results')
4
+ */
5
+ contentType?: string;
6
+ }
@@ -0,0 +1,2 @@
1
+ export { default } from './NoResultsTemplate';
2
+ export * from './NoResultsTemplate.types';
@@ -105,6 +105,11 @@ export interface DirectoryServiceListProps {
105
105
  * Is the component in error state
106
106
  */
107
107
  isError?: boolean;
108
+ /**
109
+ * Custom HTML content to display when no results are found.
110
+ * If not provided, defaults to "No results found" message.
111
+ */
112
+ noResultsContent?: string;
108
113
  }
109
114
  export interface DirectoryCategory {
110
115
  /**
@@ -109,6 +109,11 @@ export interface EventListProps {
109
109
  * Should old events be hidden automatically? Defaults to true.
110
110
  */
111
111
  hideOldEvents?: boolean;
112
+ /**
113
+ * Custom HTML content to display when no events are found.
114
+ * If not provided, defaults to "No events found" message.
115
+ */
116
+ noResultsContent?: string;
112
117
  }
113
118
  export interface EventCategory {
114
119
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nnc-digital/nnc-design-system",
3
- "version": "1.0.0-beta18",
3
+ "version": "1.0.0-beta19",
4
4
  "description": "Design system for West & North Northamptonshire Councils, two unitary councils encompassing Wellingborough, Corby, Daventry, East Northants, Kettering, Northampton, Northamptonshire County and South Northants.",
5
5
  "main": "build/index.js",
6
6
  "repository": {