dhre-component-lib 0.2.4 → 0.2.6

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,11 @@
1
1
  import React from "react";
2
+ import "./Modal.module.scss";
2
3
  interface ModalProps {
3
4
  isOpen: boolean;
4
5
  onClose: () => void;
6
+ title?: React.ReactNode;
5
7
  children: React.ReactNode;
6
- modalOverlayClassname?: string;
7
- modalContentClassname?: string;
8
+ crossIcon: React.ReactNode;
8
9
  }
9
10
  declare const Modal: React.FC<ModalProps>;
10
11
  export default Modal;
@@ -0,0 +1,12 @@
1
+ import React from "react";
2
+ import "./Search.module.scss";
3
+ interface CustomSearchFieldProps {
4
+ searchIcon: React.ReactNode;
5
+ crossIcon: React.ReactNode;
6
+ disabled?: boolean;
7
+ onSearch: (query: string) => void;
8
+ placeholder: string;
9
+ className?: string;
10
+ }
11
+ declare const Search: React.FC<CustomSearchFieldProps>;
12
+ export default Search;
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import '../../theme/Typography/typography.scss';
3
+ interface TypographyProps {
4
+ variant?: 'H1' | 'H2' | 'H3' | 'H4' | 'H5' | 'H6' | 'H7' | 'H8' | 'B1' | 'B2' | 'B3' | 'B4' | 'L1' | 'L2' | 'L3';
5
+ weight?: 'BOLD' | 'SEMI_BOLD' | 'MEDIUM';
6
+ children: React.ReactNode;
7
+ className?: string;
8
+ }
9
+ declare const Typography: React.FC<TypographyProps>;
10
+ export default Typography;
@@ -0,0 +1 @@
1
+ export { default } from "./Typography";
package/dist/index.d.ts CHANGED
@@ -163,4 +163,42 @@ interface OTPInputProps {
163
163
  }
164
164
  declare const OTPInput: React.FC<OTPInputProps>;
165
165
 
166
- export { Avatar, Badge, Breadcrumb as BreadCrumb, Button, CustomCheckbox as Checkbox, CircularProgress, GetDirectionAction as Directions, CustomDivider as Divider, MapComponent as GoogleMap, CustomInputField as InputTextField, Link, OTPInput as OtpInput, Progress, CustomRadioButton as RadioButton, PdfView as default };
166
+ interface TypographyProps {
167
+ variant?: 'H1' | 'H2' | 'H3' | 'H4' | 'H5' | 'H6' | 'H7' | 'H8' | 'B1' | 'B2' | 'B3' | 'B4' | 'L1' | 'L2' | 'L3';
168
+ weight?: 'BOLD' | 'SEMI_BOLD' | 'MEDIUM';
169
+ children: React.ReactNode;
170
+ className?: string;
171
+ }
172
+ declare const Typography: React.FC<TypographyProps>;
173
+
174
+ interface CustomSearchFieldProps {
175
+ searchIcon: React.ReactNode;
176
+ crossIcon: React.ReactNode;
177
+ disabled?: boolean;
178
+ onSearch: (query: string) => void;
179
+ placeholder: string;
180
+ className?: string;
181
+ }
182
+ declare const Search: React.FC<CustomSearchFieldProps>;
183
+
184
+ interface ModalProps {
185
+ isOpen: boolean;
186
+ onClose: () => void;
187
+ title?: React.ReactNode;
188
+ children: React.ReactNode;
189
+ crossIcon: React.ReactNode;
190
+ }
191
+ declare const Modal: React.FC<ModalProps>;
192
+
193
+ type AccordionProps = {
194
+ icon?: React.ReactNode;
195
+ title: React.ReactNode;
196
+ description?: React.ReactNode;
197
+ children?: React.ReactNode;
198
+ border?: boolean;
199
+ upArrowIcon: React.ReactNode;
200
+ downArrowIcon: React.ReactNode;
201
+ };
202
+ declare const Accordion: React.FC<AccordionProps>;
203
+
204
+ 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 };