dhre-component-lib 0.2.7 → 0.2.9

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.
@@ -8,6 +8,7 @@ type AccordionProps = {
8
8
  border?: boolean;
9
9
  upArrowIcon: React.ReactNode;
10
10
  downArrowIcon: React.ReactNode;
11
+ openByDefault?: boolean;
11
12
  };
12
13
  declare const Accordion: React.FC<AccordionProps>;
13
14
  export default Accordion;
@@ -19,6 +19,8 @@ interface CustomSearchFieldProps {
19
19
  suggestions: Suggestion[] | null | undefined;
20
20
  placeholder: string;
21
21
  className?: string;
22
+ onSearchIconClick?: () => void;
23
+ onHandleClear?: () => void;
22
24
  }
23
25
  declare const Search: React.FC<CustomSearchFieldProps>;
24
26
  export default Search;
@@ -0,0 +1,12 @@
1
+ import React from "react";
2
+ import "./Tabs.module.scss";
3
+ type Tab = {
4
+ name: string;
5
+ value: string;
6
+ };
7
+ interface TabsProps {
8
+ tabs: Tab[];
9
+ onTabChange: (selectedTab: Tab) => void;
10
+ }
11
+ declare const Tabs: React.FC<TabsProps>;
12
+ export default Tabs;
@@ -0,0 +1 @@
1
+ export { default } from "./Tabs";
package/dist/index.d.ts CHANGED
@@ -190,6 +190,8 @@ interface CustomSearchFieldProps {
190
190
  suggestions: Suggestion[] | null | undefined;
191
191
  placeholder: string;
192
192
  className?: string;
193
+ onSearchIconClick?: () => void;
194
+ onHandleClear?: () => void;
193
195
  }
194
196
  declare const Search: React.FC<CustomSearchFieldProps>;
195
197
 
@@ -210,7 +212,18 @@ type AccordionProps = {
210
212
  border?: boolean;
211
213
  upArrowIcon: React.ReactNode;
212
214
  downArrowIcon: React.ReactNode;
215
+ openByDefault?: boolean;
213
216
  };
214
217
  declare const Accordion: React.FC<AccordionProps>;
215
218
 
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 };
219
+ type Tab = {
220
+ name: string;
221
+ value: string;
222
+ };
223
+ interface TabsProps {
224
+ tabs: Tab[];
225
+ onTabChange: (selectedTab: Tab) => void;
226
+ }
227
+ declare const Tabs: React.FC<TabsProps>;
228
+
229
+ 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, Tabs, Typography, PdfView as default };