dhre-component-lib 0.2.5 → 0.2.7

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,13 @@
1
+ import React from 'react';
2
+ import './Accordian.module.scss';
3
+ type AccordionProps = {
4
+ icon?: React.ReactNode;
5
+ title: React.ReactNode;
6
+ description?: React.ReactNode;
7
+ children?: React.ReactNode;
8
+ border?: boolean;
9
+ upArrowIcon: React.ReactNode;
10
+ downArrowIcon: React.ReactNode;
11
+ };
12
+ declare const Accordion: React.FC<AccordionProps>;
13
+ export default Accordion;
@@ -0,0 +1 @@
1
+ export { default } from "./Accordian";
@@ -1,10 +1,22 @@
1
1
  import React from "react";
2
2
  import "./Search.module.scss";
3
+ interface Suggestion {
4
+ id: string;
5
+ title: string;
6
+ faqAnswer: string;
7
+ faqQuestion: string;
8
+ fieldFaqCategory: string;
9
+ isBookmarked: boolean;
10
+ images: string[];
11
+ videos: string[];
12
+ }
3
13
  interface CustomSearchFieldProps {
4
14
  searchIcon: React.ReactNode;
5
15
  crossIcon: React.ReactNode;
6
16
  disabled?: boolean;
7
17
  onSearch: (query: string) => void;
18
+ onSelectSuggestion: (selectedSuggestion: Suggestion | null) => void;
19
+ suggestions: Suggestion[] | null | undefined;
8
20
  placeholder: string;
9
21
  className?: string;
10
22
  }
package/dist/index.d.ts CHANGED
@@ -171,11 +171,23 @@ interface TypographyProps {
171
171
  }
172
172
  declare const Typography: React.FC<TypographyProps>;
173
173
 
174
+ interface Suggestion {
175
+ id: string;
176
+ title: string;
177
+ faqAnswer: string;
178
+ faqQuestion: string;
179
+ fieldFaqCategory: string;
180
+ isBookmarked: boolean;
181
+ images: string[];
182
+ videos: string[];
183
+ }
174
184
  interface CustomSearchFieldProps {
175
185
  searchIcon: React.ReactNode;
176
186
  crossIcon: React.ReactNode;
177
187
  disabled?: boolean;
178
188
  onSearch: (query: string) => void;
189
+ onSelectSuggestion: (selectedSuggestion: Suggestion | null) => void;
190
+ suggestions: Suggestion[] | null | undefined;
179
191
  placeholder: string;
180
192
  className?: string;
181
193
  }
@@ -190,4 +202,15 @@ interface ModalProps {
190
202
  }
191
203
  declare const Modal: React.FC<ModalProps>;
192
204
 
193
- export { Avatar, Badge, Breadcrumb as BreadCrumb, Button, CustomCheckbox as Checkbox, CircularProgress, GetDirectionAction as Directions, CustomDivider as Divider, MapComponent as GoogleMap, CustomInputField as InputTextField, Link, Modal, OTPInput as OtpInput, Progress, CustomRadioButton as RadioButton, Search, Typography, PdfView as default };
205
+ type AccordionProps = {
206
+ icon?: React.ReactNode;
207
+ title: React.ReactNode;
208
+ description?: React.ReactNode;
209
+ children?: React.ReactNode;
210
+ border?: boolean;
211
+ upArrowIcon: React.ReactNode;
212
+ downArrowIcon: React.ReactNode;
213
+ };
214
+ declare const Accordion: React.FC<AccordionProps>;
215
+
216
+ export { Accordion as Accordian, Avatar, Badge, Breadcrumb as BreadCrumb, Button, CustomCheckbox as Checkbox, CircularProgress, GetDirectionAction as Directions, CustomDivider as Divider, MapComponent as GoogleMap, CustomInputField as InputTextField, Link, Modal, OTPInput as OtpInput, Progress, CustomRadioButton as RadioButton, Search, Typography, PdfView as default };