dhre-ui-kit 0.0.94 → 0.0.96
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/{src/assets/index.ts → lib/assets/index.d.ts} +1 -18
- package/lib/index.d.ts +862 -0
- package/lib/index.esm.js +2 -0
- package/lib/index.esm.js.map +1 -0
- package/lib/index.js +4333 -0
- package/lib/index.js.map +1 -0
- package/lib/index.mjs +4248 -0
- package/lib/index.mjs.map +1 -0
- package/lib/theme/ThemeContext.d.ts +10 -0
- package/lib/theme/colors.d.ts +166 -0
- package/lib/theme/fonts.d.ts +8 -0
- package/lib/theme/themes.d.ts +131 -0
- package/lib/theme/withThemeProvider.d.ts +2 -0
- package/lib/utils/appEnum.d.ts +90 -0
- package/lib/utils/commonStyles.d.ts +15 -0
- package/lib/utils/constants.d.ts +19 -0
- package/lib/utils/deviceUtils.d.ts +7 -0
- package/lib/utils/regex.d.ts +1 -0
- package/lib/utils/stylehelper.d.ts +5 -0
- package/package.json +61 -81
- package/README.md +0 -1
- package/__mocks__/custom-text.mock.tsx +0 -19
- package/__mocks__/setup-tests.ts +0 -24
- package/__mocks__/svgMock.ts +0 -2
- package/src/App.tsx +0 -43
- package/src/assets/fonts/MeraasAktiv_Bd.ttf +0 -0
- package/src/assets/fonts/MeraasAktiv_Lt.ttf +0 -0
- package/src/assets/fonts/MeraasAktiv_Rg.ttf +0 -0
- package/src/assets/images/arrowLeft.svg +0 -3
- package/src/assets/images/bellSimple.svg +0 -3
- package/src/assets/images/calenderDots.svg +0 -1
- package/src/assets/images/caretDown.svg +0 -3
- package/src/assets/images/caretLeft.svg +0 -3
- package/src/assets/images/caretRight.svg +0 -3
- package/src/assets/images/caretUp.svg +0 -3
- package/src/assets/images/checkWhite.svg +0 -3
- package/src/assets/images/circleTick.svg +0 -3
- package/src/assets/images/crossIcon.svg +0 -3
- package/src/assets/images/dotsThreeVertical.svg +0 -5
- package/src/assets/images/fileIcon.svg +0 -8
- package/src/assets/images/searchIcon.svg +0 -4
- package/src/assets/images/trash.svg +0 -7
- package/src/assets/images/uploadFileIcon.svg +0 -12
- package/src/components/ContactModel/ContactModel.tsx +0 -206
- package/src/components/ContactModel/index.ts +0 -1
- package/src/components/OutOfOffice/OurOffices.tsx +0 -91
- package/src/components/OutOfOffice/index.ts +0 -1
- package/src/components/accordion/Accordion.interface.ts +0 -16
- package/src/components/accordion/Accordion.styles.ts +0 -28
- package/src/components/accordion/Accordion.test.tsx +0 -21
- package/src/components/accordion/Accordion.tsx +0 -85
- package/src/components/accordion/index.ts +0 -1
- package/src/components/autoOtpReader/AutoOtpReader.test.tsx +0 -56
- package/src/components/autoOtpReader/AutoOtpReader.tsx +0 -79
- package/src/components/autoOtpReader/index.ts +0 -1
- package/src/components/badge/Badge.styles.ts +0 -20
- package/src/components/badge/Badge.test.tsx +0 -57
- package/src/components/badge/Badge.tsx +0 -48
- package/src/components/badge/index.ts +0 -1
- package/src/components/bottomDrawer/BottomDrawer.interface.ts +0 -23
- package/src/components/bottomDrawer/BottomDrawer.styles.ts +0 -47
- package/src/components/bottomDrawer/BottomDrawer.test.tsx +0 -19
- package/src/components/bottomDrawer/BottomDrawer.tsx +0 -92
- package/src/components/bottomDrawer/index.ts +0 -1
- package/src/components/button/Button.interface.ts +0 -19
- package/src/components/button/Button.styles.ts +0 -78
- package/src/components/button/Button.test.tsx +0 -43
- package/src/components/button/Button.tsx +0 -82
- package/src/components/button/index.ts +0 -1
- package/src/components/cards/Cards.interface.ts +0 -13
- package/src/components/cards/Cards.styles.ts +0 -59
- package/src/components/cards/Cards.test.tsx +0 -41
- package/src/components/cards/Cards.tsx +0 -69
- package/src/components/cards/index.ts +0 -1
- package/src/components/checkBox/CheckBox.interface.ts +0 -15
- package/src/components/checkBox/CheckBox.styles.ts +0 -35
- package/src/components/checkBox/CheckBox.test.tsx +0 -46
- package/src/components/checkBox/CheckBox.tsx +0 -50
- package/src/components/checkBox/index.ts +0 -1
- package/src/components/countryPicker/CountryPicker.tsx +0 -169
- package/src/components/countryPicker/index.ts +0 -1
- package/src/components/customDocumentPicker/CustomDocumentPicker.interface.ts +0 -13
- package/src/components/customDocumentPicker/CustomDocumentPicker.styles.ts +0 -33
- package/src/components/customDocumentPicker/CustomDocumentPicker.tsx +0 -100
- package/src/components/customDocumentPicker/index.ts +0 -1
- package/src/components/customDropdown/CustomDropdown.interface.ts +0 -15
- package/src/components/customDropdown/CustomDropdown.styles.tsx +0 -46
- package/src/components/customDropdown/CustomDropdown.test.tsx +0 -30
- package/src/components/customDropdown/CustomDropdown.tsx +0 -106
- package/src/components/customDropdown/index.ts +0 -1
- package/src/components/customHeader/CustomHeader.interface.tsx +0 -10
- package/src/components/customHeader/CustomHeader.styles.ts +0 -26
- package/src/components/customHeader/CustomHeader.test.tsx +0 -14
- package/src/components/customHeader/CustomHeader.tsx +0 -46
- package/src/components/customHeader/index.ts +0 -1
- package/src/components/customIcon/CustomIcon.interface.ts +0 -12
- package/src/components/customIcon/CustomIcon.styles.ts +0 -13
- package/src/components/customIcon/CustomIcon.test.tsx +0 -14
- package/src/components/customIcon/CustomIcon.tsx +0 -33
- package/src/components/customIcon/index.ts +0 -1
- package/src/components/customInputText/CustomInputText.interface.ts +0 -20
- package/src/components/customInputText/CustomInputText.styles.ts +0 -56
- package/src/components/customInputText/CustomInputText.test.tsx +0 -37
- package/src/components/customInputText/CustomInputText.tsx +0 -120
- package/src/components/customInputText/index.ts +0 -1
- package/src/components/customLoader/CustomLoader.inteface.ts +0 -3
- package/src/components/customLoader/CustomLoader.styles.ts +0 -16
- package/src/components/customLoader/CustomLoader.tsx +0 -16
- package/src/components/customLoader/index.ts +0 -1
- package/src/components/customSearchBar/CustomSearchBar.interface.ts +0 -21
- package/src/components/customSearchBar/CustomSearchBar.styles.ts +0 -23
- package/src/components/customSearchBar/CustomSearchBar.test.tsx +0 -27
- package/src/components/customSearchBar/CustomSearchBar.tsx +0 -87
- package/src/components/customSearchBar/index.ts +0 -1
- package/src/components/customSlideButton/custom-slide-button.interface.ts +0 -4
- package/src/components/customSlideButton/index.tsx +0 -78
- package/src/components/customSlideButton/styles.ts +0 -39
- package/src/components/customSwitchBtn/customSwitchBtn.interface.ts +0 -15
- package/src/components/customSwitchBtn/customSwitchBtn.styles.ts +0 -34
- package/src/components/customSwitchBtn/customSwitchBtn.tsx +0 -63
- package/src/components/customSwitchBtn/index.ts +0 -1
- package/src/components/customText/CustomText.tsx +0 -33
- package/src/components/customText/index.ts +0 -1
- package/src/components/customTooltip/CustomTooltip.interface.ts +0 -14
- package/src/components/customTooltip/CustomTooltip.styles.ts +0 -23
- package/src/components/customTooltip/CustomTooltip.test.tsx +0 -18
- package/src/components/customTooltip/CustomTooltip.tsx +0 -46
- package/src/components/customTooltip/index.ts +0 -1
- package/src/components/customTypography/CustomTypography.test.tsx +0 -12
- package/src/components/customTypography/CustomTypography.tsx +0 -27
- package/src/components/customTypography/index.ts +0 -1
- package/src/components/dateRangePicker/DateRangePicker.interface.ts +0 -19
- package/src/components/dateRangePicker/DateRangePicker.styles.ts +0 -19
- package/src/components/dateRangePicker/DateRangePicker.tsx +0 -108
- package/src/components/dateRangePicker/index.ts +0 -1
- package/src/components/dropDown/DropDown.tsx +0 -145
- package/src/components/dropDown/index.ts +0 -1
- package/src/components/feedback/feedback.style.ts +0 -48
- package/src/components/feedback/feedback.tsx +0 -61
- package/src/components/feedback/index.ts +0 -1
- package/src/components/fileUpload/FileUpload.styles.ts +0 -41
- package/src/components/fileUpload/FileUpload.test.tsx +0 -39
- package/src/components/fileUpload/FileUpload.tsx +0 -65
- package/src/components/fileUpload/index.ts +0 -1
- package/src/components/horizontalLine/Line.tsx +0 -26
- package/src/components/horizontalLine/index.ts +0 -1
- package/src/components/notificationBandge/NotificationBandge.interface.tsx +0 -3
- package/src/components/notificationBandge/NotificationBandge.styles.tsx +0 -26
- package/src/components/notificationBandge/NotificationBandge.tsx +0 -26
- package/src/components/notificationBandge/index.tsx +0 -1
- package/src/components/otp/index.tsx +0 -166
- package/src/components/otp/otp.interface.ts +0 -14
- package/src/components/otp/styles.ts +0 -29
- package/src/components/pdfView/PdfView.test.tsx +0 -12
- package/src/components/pdfView/PdfView.tsx +0 -8
- package/src/components/pdfView/index.ts +0 -1
- package/src/components/popup/PopUp.interface.ts +0 -9
- package/src/components/popup/PopUp.styles.ts +0 -52
- package/src/components/popup/PopUp.test.tsx +0 -35
- package/src/components/popup/PopUp.tsx +0 -60
- package/src/components/popup/index.ts +0 -1
- package/src/components/progressBar/ProgressBar.test.tsx +0 -78
- package/src/components/progressBar/ProgressBar.tsx +0 -120
- package/src/components/progressBar/index.ts +0 -1
- package/src/components/property360View/Property360View.test.tsx +0 -24
- package/src/components/property360View/Property360View.tsx +0 -19
- package/src/components/property360View/index.ts +0 -1
- package/src/components/rating/index.ts +0 -1
- package/src/components/rating/rating.styles.ts +0 -13
- package/src/components/rating/rating.test.tsx +0 -61
- package/src/components/rating/rating.tsx +0 -96
- package/src/components/scrollList/category.tsx +0 -110
- package/src/components/scrollList/index.ts +0 -1
- package/src/components/singleSelectionTag/TagSingleSelection.tsx +0 -105
- package/src/components/singleSelectionTag/index.ts +0 -1
- package/src/components/stepper/index.tsx +0 -105
- package/src/components/stepper/stepper.interface.ts +0 -24
- package/src/components/stepper/styles.ts +0 -74
- package/src/components/swipableList/SwipableList.interface.ts +0 -52
- package/src/components/swipableList/SwipableList.styles.ts +0 -30
- package/src/components/swipableList/SwipableList.test.tsx +0 -209
- package/src/components/swipableList/SwipableList.tsx +0 -137
- package/src/components/swipableList/index.ts +0 -1
- package/src/components/tabs/Tabs.interface.ts +0 -10
- package/src/components/tabs/Tabs.styles.ts +0 -24
- package/src/components/tabs/Tabs.tsx +0 -74
- package/src/components/tabs/index.ts +0 -1
- package/src/components/tags/Tags.interface.ts +0 -12
- package/src/components/tags/Tags.styles.ts +0 -36
- package/src/components/tags/Tags.test.tsx +0 -22
- package/src/components/tags/Tags.tsx +0 -76
- package/src/components/tags/index.ts +0 -1
- package/src/components/textInput/Textinput.tsx +0 -124
- package/src/components/textInput/index.ts +0 -1
- package/src/components/toast/Toast.interface.ts +0 -39
- package/src/components/toast/Toast.styles.ts +0 -41
- package/src/components/toast/Toast.test.tsx +0 -13
- package/src/components/toast/Toast.tsx +0 -115
- package/src/components/toast/ToastService.ts +0 -30
- package/src/components/toast/index.ts +0 -1
- package/src/components/toggleButton/ToggleButton.styles.ts +0 -40
- package/src/components/toggleButton/ToggleButton.test.tsx +0 -33
- package/src/components/toggleButton/ToggleButton.tsx +0 -78
- package/src/components/toggleButton/index.ts +0 -1
- package/src/components/topic/Topic.tsx +0 -85
- package/src/components/topic/index.ts +0 -1
- package/src/index.ts +0 -59
- package/src/theme/ThemeContext.tsx +0 -38
- package/src/theme/colors.ts +0 -186
- package/src/theme/fonts.ts +0 -72
- package/src/theme/themes.ts +0 -137
- package/src/theme/withThemeProvider.tsx +0 -14
- package/src/utils/appEnum.ts +0 -109
- package/src/utils/commonStyles.ts +0 -17
- package/src/utils/constants.ts +0 -20
- package/src/utils/deviceUtils.ts +0 -14
- package/src/utils/regex.ts +0 -1
- package/src/utils/stylehelper.ts +0 -13
package/lib/index.d.ts
ADDED
|
@@ -0,0 +1,862 @@
|
|
|
1
|
+
import React$1, { ReactElement, ReactNode } from 'react';
|
|
2
|
+
import { TextStyle, TextProps, StyleProp, ViewStyle, TextInputProps, ImageStyle } from 'react-native';
|
|
3
|
+
import { SvgProps } from 'react-native-svg';
|
|
4
|
+
import { PdfProps } from 'react-native-pdf';
|
|
5
|
+
import { CalendarProps } from 'react-native-calendars';
|
|
6
|
+
import { CountryCode } from 'react-native-country-picker-modal';
|
|
7
|
+
import { DocumentPickerResponse } from 'react-native-document-picker';
|
|
8
|
+
|
|
9
|
+
interface FontStyles {
|
|
10
|
+
[key: string]: TextStyle;
|
|
11
|
+
}
|
|
12
|
+
declare const FONT_STYLES: FontStyles;
|
|
13
|
+
|
|
14
|
+
interface CustomTextProps extends TextProps {
|
|
15
|
+
text: string;
|
|
16
|
+
variant: keyof typeof FONT_STYLES | string;
|
|
17
|
+
style?: StyleProp<TextStyle>;
|
|
18
|
+
textColor?: string;
|
|
19
|
+
}
|
|
20
|
+
declare const _default$c: (props: CustomTextProps) => React$1.JSX.Element;
|
|
21
|
+
|
|
22
|
+
interface BadgeProps {
|
|
23
|
+
text?: string;
|
|
24
|
+
style?: ViewStyle;
|
|
25
|
+
iconName?: ReactElement<SvgProps>;
|
|
26
|
+
textStyle?: TextStyle;
|
|
27
|
+
iconStyle?: ViewStyle;
|
|
28
|
+
handleIconPress: () => void;
|
|
29
|
+
}
|
|
30
|
+
declare const _default$b: (props: BadgeProps) => React$1.JSX.Element;
|
|
31
|
+
|
|
32
|
+
interface BottomDrawerProps {
|
|
33
|
+
isModalVisible: boolean;
|
|
34
|
+
toggleModal: () => void;
|
|
35
|
+
isFullScreen?: boolean;
|
|
36
|
+
children: React.ReactNode;
|
|
37
|
+
title: string;
|
|
38
|
+
testID?: string;
|
|
39
|
+
style?: ViewStyle;
|
|
40
|
+
modalContainerStyle?: ViewStyle;
|
|
41
|
+
blurAmount?: number;
|
|
42
|
+
blurViewStyle?: ViewStyle;
|
|
43
|
+
showBlurView?: boolean;
|
|
44
|
+
leftIcon?: React.ReactElement;
|
|
45
|
+
rightIcon?: React.ReactElement;
|
|
46
|
+
showLeftIcon?: boolean;
|
|
47
|
+
showRightIcon?: boolean;
|
|
48
|
+
onLeftIconPress?: () => void;
|
|
49
|
+
titleStyle?: TextStyle;
|
|
50
|
+
titleVariant?: string;
|
|
51
|
+
showHeader?: boolean;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
declare const BottomDrawer: React$1.FC<BottomDrawerProps>;
|
|
55
|
+
|
|
56
|
+
interface CustomButtonProps {
|
|
57
|
+
title: string;
|
|
58
|
+
onPress: () => void;
|
|
59
|
+
containerStyle?: StyleProp<ViewStyle>;
|
|
60
|
+
textStyle?: TextStyle;
|
|
61
|
+
leftIcon?: ReactElement<SvgProps>;
|
|
62
|
+
rightIcon?: ReactElement<SvgProps>;
|
|
63
|
+
iconStyle?: ViewStyle;
|
|
64
|
+
titleColor?: string;
|
|
65
|
+
titleVariant?: string;
|
|
66
|
+
imagePosition?: 'left' | 'right';
|
|
67
|
+
testID?: string;
|
|
68
|
+
disabled?: boolean;
|
|
69
|
+
disabledColor?: string;
|
|
70
|
+
disableButtonTitleColor?: string;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
declare const _default$a: (props: CustomButtonProps) => React$1.JSX.Element;
|
|
74
|
+
|
|
75
|
+
interface CardsProps {
|
|
76
|
+
topLeftTitle?: string;
|
|
77
|
+
subtitle?: string;
|
|
78
|
+
iconTitle?: string;
|
|
79
|
+
iconSource?: ReactNode;
|
|
80
|
+
buttonText?: string;
|
|
81
|
+
title?: string;
|
|
82
|
+
buttonShown?: boolean;
|
|
83
|
+
testID?: string;
|
|
84
|
+
onButtonPress?: () => void;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
declare const Cards: React$1.FC<CardsProps>;
|
|
88
|
+
|
|
89
|
+
interface CheckBoxProps {
|
|
90
|
+
isChecked: boolean;
|
|
91
|
+
onCheck?: (checked: boolean) => void;
|
|
92
|
+
labelName: string;
|
|
93
|
+
disable?: boolean;
|
|
94
|
+
isCircle?: boolean;
|
|
95
|
+
testID?: string;
|
|
96
|
+
checkedIcon: React.ReactElement;
|
|
97
|
+
uncheckedIcon: React.ReactElement;
|
|
98
|
+
titleVariant?: string;
|
|
99
|
+
titleStyle?: TextStyle;
|
|
100
|
+
containerStyle?: ViewStyle;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
declare const Checkbox: React$1.FC<CheckBoxProps>;
|
|
104
|
+
|
|
105
|
+
interface CustomDropdownProps$1 {
|
|
106
|
+
label: string;
|
|
107
|
+
placeholder?: string;
|
|
108
|
+
options: Array<{
|
|
109
|
+
id: string;
|
|
110
|
+
value: string;
|
|
111
|
+
label: string;
|
|
112
|
+
}>;
|
|
113
|
+
selectedValue?: {
|
|
114
|
+
id: string;
|
|
115
|
+
value: string;
|
|
116
|
+
label: string;
|
|
117
|
+
};
|
|
118
|
+
oneSelect: (option: {
|
|
119
|
+
id: string;
|
|
120
|
+
value: string;
|
|
121
|
+
label: string;
|
|
122
|
+
}) => void;
|
|
123
|
+
testId?: string;
|
|
124
|
+
iconName?: ReactElement;
|
|
125
|
+
iconStyle?: ViewStyle;
|
|
126
|
+
upArrowIcon: ReactElement;
|
|
127
|
+
downArrowIcon: ReactElement;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
declare const CustomDropdown$1: React$1.FC<CustomDropdownProps$1>;
|
|
131
|
+
|
|
132
|
+
interface CustomTextInputProps extends TextInputProps {
|
|
133
|
+
label: string;
|
|
134
|
+
placeholder?: string;
|
|
135
|
+
disabled?: boolean;
|
|
136
|
+
errorMessage?: string;
|
|
137
|
+
successMessage?: string;
|
|
138
|
+
testID?: string;
|
|
139
|
+
handleFocus?: () => void;
|
|
140
|
+
handleBlur?: () => void;
|
|
141
|
+
handleOnChangeText?: (text: string) => void;
|
|
142
|
+
secureTextEntry?: boolean;
|
|
143
|
+
isSearchBar?: boolean;
|
|
144
|
+
multiline?: boolean;
|
|
145
|
+
rightIcon1?: ReactElement;
|
|
146
|
+
rightIcon2?: ReactElement;
|
|
147
|
+
searchIcon?: ReactElement;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
declare const CustomTextInput: React$1.FC<CustomTextInputProps>;
|
|
151
|
+
|
|
152
|
+
interface CustomTooltipProps {
|
|
153
|
+
message: string;
|
|
154
|
+
children: React$1.ReactNode;
|
|
155
|
+
actionType?: 'press' | 'longPress';
|
|
156
|
+
testId?: string;
|
|
157
|
+
backgroundColor?: string;
|
|
158
|
+
popoverContent?: React$1.ReactElement;
|
|
159
|
+
icon?: ReactElement;
|
|
160
|
+
iconStyle?: ViewStyle;
|
|
161
|
+
iconColor?: string;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
declare const CustomTooltip: React$1.FC<CustomTooltipProps>;
|
|
165
|
+
|
|
166
|
+
interface FileUploadProps {
|
|
167
|
+
onUpload: () => void;
|
|
168
|
+
title: string;
|
|
169
|
+
containerStyle?: ViewStyle;
|
|
170
|
+
btnText: string;
|
|
171
|
+
uploadImageStyling: ImageStyle;
|
|
172
|
+
icon?: React$1.ReactElement;
|
|
173
|
+
iconStyle?: ViewStyle;
|
|
174
|
+
}
|
|
175
|
+
declare const FileUpload: React$1.FC<FileUploadProps>;
|
|
176
|
+
|
|
177
|
+
declare const PdfView: React$1.FC<PdfProps>;
|
|
178
|
+
|
|
179
|
+
interface PopUpProps {
|
|
180
|
+
subtitle?: string;
|
|
181
|
+
buttonText?: string;
|
|
182
|
+
title?: string;
|
|
183
|
+
leftButtonShown: boolean;
|
|
184
|
+
rightButtonShown: boolean;
|
|
185
|
+
testID?: string;
|
|
186
|
+
onButtonPress?: () => void;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
declare const PopUp: React$1.FC<PopUpProps>;
|
|
190
|
+
|
|
191
|
+
declare enum ShapeType {
|
|
192
|
+
LINE = "line",
|
|
193
|
+
CIRCLE = "circle"
|
|
194
|
+
}
|
|
195
|
+
declare enum ToggleButtonType {
|
|
196
|
+
SMALL = "small",
|
|
197
|
+
LARGE = "large"
|
|
198
|
+
}
|
|
199
|
+
declare enum FontStyle {
|
|
200
|
+
H1_BOLD = "H1_BOLD",
|
|
201
|
+
H2_BOLD = "H2_BOLD",
|
|
202
|
+
H3_BOLD = "H3_BOLD",
|
|
203
|
+
H4_BOLD = "H4_BOLD",
|
|
204
|
+
H5_BOLD = "H5_BOLD",
|
|
205
|
+
H6_BOLD = "H6_BOLD",
|
|
206
|
+
H7_BOLD = "H7_BOLD",
|
|
207
|
+
H8_BOLD = "H8_BOLD",
|
|
208
|
+
H1_REGULAR = "H1_REGULAR",
|
|
209
|
+
H2_REGULAR = "H2_REGULAR",
|
|
210
|
+
H3_REGULAR = "H3_REGULAR",
|
|
211
|
+
H4_REGULAR = "H4_REGULAR",
|
|
212
|
+
H5_REGULAR = "H5_REGULAR",
|
|
213
|
+
H6_REGULAR = "H6_REGULAR",
|
|
214
|
+
H7_REGULAR = "H7_REGULAR",
|
|
215
|
+
H8_REGULAR = "H8_REGULAR",
|
|
216
|
+
H1_LIGHT = "H1_LIGHT",
|
|
217
|
+
H2_LIGHT = "H2_LIGHT",
|
|
218
|
+
H3_LIGHT = "H3_LIGHT",
|
|
219
|
+
H4_LIGHT = "H4_LIGHT",
|
|
220
|
+
H5_LIGHT = "H5_LIGHT",
|
|
221
|
+
H6_LIGHT = "H6_LIGHT",
|
|
222
|
+
H7_LIGHT = "H7_LIGHT",
|
|
223
|
+
H8_LIGHT = "H8_LIGHT",
|
|
224
|
+
B1_BOLD = "B1_BOLD",
|
|
225
|
+
B2_BOLD = "B2_BOLD",
|
|
226
|
+
B3_BOLD = "B3_BOLD",
|
|
227
|
+
B4_BOLD = "B4_BOLD",
|
|
228
|
+
B1_REGULAR = "B1_REGULAR",
|
|
229
|
+
B2_REGULAR = "B2_REGULAR",
|
|
230
|
+
B3_REGULAR = "B3_REGULAR",
|
|
231
|
+
B4_REGULAR = "B4_REGULAR",
|
|
232
|
+
L1_BOLD = "L1_BOLD",
|
|
233
|
+
L2_BOLD = "L2_BOLD",
|
|
234
|
+
L3_BOLD = "L3_BOLD",
|
|
235
|
+
L1_REGULAR = "L1_REGULAR",
|
|
236
|
+
L2_REGULAR = "L2_REGULAR",
|
|
237
|
+
L3_REGULAR = "L3_REGULAR"
|
|
238
|
+
}
|
|
239
|
+
declare enum Theme {
|
|
240
|
+
SURFACE_PRIMARY = "SURFACE_PRIMARY",
|
|
241
|
+
SURFACE_SECONDARY = "SURFACE_SECONDARY",
|
|
242
|
+
SURFACE_TERTIARY = "SURFACE_TERTIARY",
|
|
243
|
+
SURFACE_STATIC = "SURFACE_STATIC",
|
|
244
|
+
SURFACE_BRAND_STATIC = "SURFACE_BRAND_STATIC",
|
|
245
|
+
SURFACE_BRAND_TRANSPARENT_STATIC = "SURFACE_BRAND_TRANSPARENT_STATIC",
|
|
246
|
+
SURFACE_DISABLE = "SURFACE_DISABLE",
|
|
247
|
+
SURFACE_INVERTED = "SURFACE_INVERTED",
|
|
248
|
+
SURFACE_INVERTED_TRANSPARENT = "SURFACE_INVERTED_TRANSPARENT",
|
|
249
|
+
SURFACE_DROP_SHADOW = "SURFACE_DROP_SHADOW",
|
|
250
|
+
SURFACE_BLUR = "SURFACE_BLUR",
|
|
251
|
+
CONTENT_PRIMARY = "CONTENT_PRIMARY",
|
|
252
|
+
CONTENT_SECONDRY = "CONTENT_SECONDRY",
|
|
253
|
+
CONTENT_DISABLE = "CONTENT_DISABLE",
|
|
254
|
+
CONTENT_INVERTED = "CONTENT_INVERTED",
|
|
255
|
+
CONTENT_STATIC = "CONTENT_STATIC",
|
|
256
|
+
CONTENT_PRIMARY_STATIC = "CONTENT_PRIMARY_STATIC",
|
|
257
|
+
CONTENT_SECONDRY_STATIC = "CONTENT_SECONDRY_STATIC",
|
|
258
|
+
BORDER_PRIMARY = "BORDER_PRIMARY",
|
|
259
|
+
BORDER_SECONDRY = "BORDER_SECONDRY",
|
|
260
|
+
BORDER_DISABLE = "BORDER_DISABLE",
|
|
261
|
+
BORDER_INVERTED = "BORDER_INVERTED",
|
|
262
|
+
BORDER_BRAND_STATIC = "BORDER_BRAND_STATIC",
|
|
263
|
+
BORDER_BRAND_TRANSPARENT_STATIC = "BORDER_BRAND_TRANSPARENT_STATIC",
|
|
264
|
+
BORDER_TEXT_FIELD = "BORDER_TEXT_FIELD",
|
|
265
|
+
BORDER_SEPERATOR_HEADER = "BORDER_SEPERATOR_HEADER",
|
|
266
|
+
BORDER_STATIC = "BORDER_STATIC",
|
|
267
|
+
BORDER_SEPRATOR = "BORDER_SEPRATOR",
|
|
268
|
+
WARNING = "WARNING",
|
|
269
|
+
SUCCESS = "SUCCESS",
|
|
270
|
+
INFO = "INFO",
|
|
271
|
+
ERROR = "ERROR"
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
interface CustomProgressBarProps {
|
|
275
|
+
value: number;
|
|
276
|
+
type: ShapeType.LINE | ShapeType.CIRCLE;
|
|
277
|
+
width: number;
|
|
278
|
+
height?: number;
|
|
279
|
+
fillColor: string;
|
|
280
|
+
unfilledColor: string;
|
|
281
|
+
borderWidth?: number;
|
|
282
|
+
borderRadius?: number;
|
|
283
|
+
circleSize?: number;
|
|
284
|
+
thickness?: number;
|
|
285
|
+
progress: number;
|
|
286
|
+
setProgress: React$1.Dispatch<React$1.SetStateAction<number>>;
|
|
287
|
+
increment?: number;
|
|
288
|
+
interval?: number;
|
|
289
|
+
percentageText?: string;
|
|
290
|
+
valueTextStyle?: TextStyle;
|
|
291
|
+
}
|
|
292
|
+
declare const CustomProgressBar: React$1.FC<CustomProgressBarProps>;
|
|
293
|
+
|
|
294
|
+
interface StarProps {
|
|
295
|
+
rating: number;
|
|
296
|
+
count: number;
|
|
297
|
+
size: number;
|
|
298
|
+
fullStarIcon: React$1.ReactElement;
|
|
299
|
+
halfStarIcon: React$1.ReactElement;
|
|
300
|
+
fullStarColor?: string;
|
|
301
|
+
emptyStarColor?: string;
|
|
302
|
+
starStyle?: ViewStyle;
|
|
303
|
+
}
|
|
304
|
+
declare const Star: React$1.FC<StarProps>;
|
|
305
|
+
|
|
306
|
+
interface Props {
|
|
307
|
+
options: string[];
|
|
308
|
+
initialSelected?: string[];
|
|
309
|
+
onSelectionChange?: (selected: string[]) => void;
|
|
310
|
+
style?: ViewStyle;
|
|
311
|
+
}
|
|
312
|
+
declare const _default$9: (props: Props) => React$1.JSX.Element;
|
|
313
|
+
|
|
314
|
+
interface TagsProps {
|
|
315
|
+
tags: string[];
|
|
316
|
+
tagStyles?: ViewStyle;
|
|
317
|
+
handleSetSelectedTagsOptions: (tags: string[]) => void;
|
|
318
|
+
handleTagsChange: (tag: string) => void;
|
|
319
|
+
testID?: string;
|
|
320
|
+
icon?: ReactElement;
|
|
321
|
+
iconStyle?: ViewStyle;
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
declare const Tags: React$1.FC<TagsProps>;
|
|
325
|
+
|
|
326
|
+
interface CustomSwitchProps {
|
|
327
|
+
onValueChange: (value: boolean) => void;
|
|
328
|
+
value: boolean;
|
|
329
|
+
type?: ToggleButtonType;
|
|
330
|
+
trackWidth?: number;
|
|
331
|
+
width?: number;
|
|
332
|
+
}
|
|
333
|
+
declare const CustomSwitch: React$1.FC<CustomSwitchProps>;
|
|
334
|
+
|
|
335
|
+
interface AccordionProps {
|
|
336
|
+
title: string;
|
|
337
|
+
testId?: string;
|
|
338
|
+
containerStyle?: ViewStyle;
|
|
339
|
+
titleStyle?: TextStyle;
|
|
340
|
+
headerStyle?: ViewStyle;
|
|
341
|
+
children?: React$1.ReactNode;
|
|
342
|
+
isOpen: boolean;
|
|
343
|
+
onToggle: () => void;
|
|
344
|
+
optionalElement?: () => React$1.ReactNode;
|
|
345
|
+
headerComponent?: () => React$1.ReactNode;
|
|
346
|
+
disabled?: boolean;
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
declare const Accordion: ({ title, testId, containerStyle, titleStyle, headerStyle, children, isOpen, onToggle, optionalElement, headerComponent, disabled, }: AccordionProps) => React$1.JSX.Element;
|
|
350
|
+
|
|
351
|
+
interface ToastProps {
|
|
352
|
+
}
|
|
353
|
+
interface ToastRef {
|
|
354
|
+
showToast: (message: string, duration?: number, isSuccess?: boolean, buttonText?: string | null, buttonAction?: (() => void) | null) => void;
|
|
355
|
+
}
|
|
356
|
+
interface ToastRef {
|
|
357
|
+
showToast: (message: string, duration?: number, isSuccess?: boolean, buttonText?: string | null, buttonAction?: (() => void) | null) => void;
|
|
358
|
+
}
|
|
359
|
+
interface ToastServiceInterface {
|
|
360
|
+
setRef: (ref: ToastRef | null) => void;
|
|
361
|
+
showToast: (message: string, duration?: number, isSuccess?: boolean, buttonText?: string | null, buttonAction?: (() => void) | null) => void;
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
declare const Toast: React$1.ForwardRefExoticComponent<ToastProps & React$1.RefAttributes<ToastRef>>;
|
|
365
|
+
|
|
366
|
+
interface CustomSearchBarProps extends TextInputProps {
|
|
367
|
+
height?: number;
|
|
368
|
+
disabled?: boolean;
|
|
369
|
+
testID?: string;
|
|
370
|
+
inputContainerStyle?: ViewStyle;
|
|
371
|
+
searchIconStyle?: TextStyle;
|
|
372
|
+
crossIconStyle?: TextStyle;
|
|
373
|
+
inputStyle?: TextStyle;
|
|
374
|
+
onSearchIconPress?: () => void;
|
|
375
|
+
onCrossIconPress?: () => void;
|
|
376
|
+
handleOnChangeText?: (text: string) => void;
|
|
377
|
+
rightIcon?: React.ReactElement;
|
|
378
|
+
disableBorderColor?: string;
|
|
379
|
+
disablePlaceHolderStyle?: string;
|
|
380
|
+
enablePlaceHolderStyle?: string;
|
|
381
|
+
borderColor?: string;
|
|
382
|
+
setValue: (val: string) => void;
|
|
383
|
+
value: string | undefined;
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
declare const CustomSearchBar: ({ value, height, disabled, testID, inputContainerStyle, searchIconStyle, crossIconStyle, inputStyle, onSearchIconPress, onCrossIconPress, handleOnChangeText, setValue, rightIcon, disableBorderColor, borderColor, disablePlaceHolderStyle, enablePlaceHolderStyle, ...props }: CustomSearchBarProps) => React$1.JSX.Element;
|
|
387
|
+
|
|
388
|
+
interface CustomHeaderProps {
|
|
389
|
+
title: string;
|
|
390
|
+
testId?: string;
|
|
391
|
+
leftIcon?: React.ReactElement;
|
|
392
|
+
rightIcon?: React.ReactElement;
|
|
393
|
+
showLeftIcon?: boolean;
|
|
394
|
+
showRightIcon?: boolean;
|
|
395
|
+
onLeftPress?: () => void;
|
|
396
|
+
onRightPress?: () => void;
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
declare const CustomHeader: ({ title, testId, leftIcon, rightIcon, showLeftIcon, showRightIcon, onLeftPress, onRightPress, }: CustomHeaderProps) => React$1.JSX.Element;
|
|
400
|
+
|
|
401
|
+
interface ListItem {
|
|
402
|
+
id: string;
|
|
403
|
+
templateId: number;
|
|
404
|
+
title: string;
|
|
405
|
+
subTitle: string;
|
|
406
|
+
icon: string;
|
|
407
|
+
isRead: boolean;
|
|
408
|
+
isPinned: boolean;
|
|
409
|
+
isDeleted: boolean;
|
|
410
|
+
isActionable: boolean;
|
|
411
|
+
category: string;
|
|
412
|
+
url: string;
|
|
413
|
+
channel: string;
|
|
414
|
+
status: string;
|
|
415
|
+
createdBy: string;
|
|
416
|
+
createdDateTime: string;
|
|
417
|
+
}
|
|
418
|
+
interface SwipableListProps {
|
|
419
|
+
data: ListItem[];
|
|
420
|
+
testId?: string;
|
|
421
|
+
renderItem: (item: ListItem) => ReactNode;
|
|
422
|
+
leftPrimaryActionActiveIcon?: ReactNode;
|
|
423
|
+
leftPrimaryActionActiveTitle?: string;
|
|
424
|
+
leftPrimaryActionInActiveIcon?: ReactNode;
|
|
425
|
+
leftPrimaryActionInActiveTitle?: string;
|
|
426
|
+
leftPrimaryActionHandler?: (item: ListItem) => void;
|
|
427
|
+
leftPrimaryActionStyle?: ViewStyle;
|
|
428
|
+
leftSecondaryActionActiveIcon?: ReactNode;
|
|
429
|
+
leftSecondaryActionActiveTitle?: string;
|
|
430
|
+
leftSecondaryActionInActiveIcon?: ReactNode;
|
|
431
|
+
leftSecondaryActionInActiveTitle?: string;
|
|
432
|
+
leftSecondaryActionHandler?: (item: ListItem) => void;
|
|
433
|
+
leftSecondaryActionStyle?: ViewStyle;
|
|
434
|
+
rightPrimaryActionIcon?: ReactNode;
|
|
435
|
+
rightPrimaryActionTitle?: string;
|
|
436
|
+
rightPrimaryActionHandler?: (item: ListItem) => void;
|
|
437
|
+
rightPrimaryActionStyle?: ViewStyle;
|
|
438
|
+
itemStyle?: ViewStyle;
|
|
439
|
+
titleStyle?: TextStyle;
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
declare const SwipableList: (props: SwipableListProps) => React$1.JSX.Element;
|
|
443
|
+
|
|
444
|
+
interface TypoTextProps extends TextProps {
|
|
445
|
+
variant: keyof typeof FONT_STYLES;
|
|
446
|
+
text?: string;
|
|
447
|
+
testID?: string;
|
|
448
|
+
}
|
|
449
|
+
declare const CustomTypography: React$1.FC<TypoTextProps>;
|
|
450
|
+
|
|
451
|
+
interface CustomIconProps {
|
|
452
|
+
icon: React$1.ReactElement;
|
|
453
|
+
title?: string;
|
|
454
|
+
titleVariant?: string;
|
|
455
|
+
testId?: string;
|
|
456
|
+
onPress?: () => void;
|
|
457
|
+
containerStyle?: ViewStyle;
|
|
458
|
+
titleStyle?: TextStyle;
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
declare const CustomIcon: ({ icon, title, titleVariant, testId, onPress, containerStyle, titleStyle, }: CustomIconProps) => React$1.JSX.Element;
|
|
462
|
+
|
|
463
|
+
interface CustomLoaderProps {
|
|
464
|
+
loading: boolean;
|
|
465
|
+
}
|
|
466
|
+
|
|
467
|
+
declare const CustomLoader: ({ loading }: CustomLoaderProps) => React$1.JSX.Element | null;
|
|
468
|
+
|
|
469
|
+
declare const _default$8: (props: {
|
|
470
|
+
style?: ViewStyle;
|
|
471
|
+
}) => React$1.JSX.Element;
|
|
472
|
+
|
|
473
|
+
interface OurOfficesButtonProps$1 {
|
|
474
|
+
rightIcon?: ReactElement<SvgProps>;
|
|
475
|
+
onPress: () => void;
|
|
476
|
+
title: string;
|
|
477
|
+
subTitle?: string;
|
|
478
|
+
containterStyle?: ViewStyle;
|
|
479
|
+
}
|
|
480
|
+
declare const _default$7: (props: OurOfficesButtonProps$1) => React$1.JSX.Element;
|
|
481
|
+
|
|
482
|
+
interface ContactModalProps {
|
|
483
|
+
phoneNumber: string;
|
|
484
|
+
visible: boolean;
|
|
485
|
+
onClose: () => void;
|
|
486
|
+
isMailOpen: boolean;
|
|
487
|
+
data: string;
|
|
488
|
+
}
|
|
489
|
+
declare const _default$6: (props: ContactModalProps) => React$1.JSX.Element;
|
|
490
|
+
|
|
491
|
+
interface DateRangePickerProps extends CalendarProps {
|
|
492
|
+
onButtonPress: (startDate: string, endDate: string) => void;
|
|
493
|
+
}
|
|
494
|
+
|
|
495
|
+
declare const DateRangePicker: (props: DateRangePickerProps) => React$1.JSX.Element;
|
|
496
|
+
|
|
497
|
+
interface OurOfficesButtonProps {
|
|
498
|
+
leftIcon?: ReactElement<SvgProps>;
|
|
499
|
+
rightIcon?: ReactElement<SvgProps>;
|
|
500
|
+
onPress: () => void;
|
|
501
|
+
title: string;
|
|
502
|
+
description: string;
|
|
503
|
+
containerStyle?: ViewStyle;
|
|
504
|
+
titleVariant?: string;
|
|
505
|
+
descriptionVariant?: string;
|
|
506
|
+
titleColor?: string;
|
|
507
|
+
descriptionColor?: string;
|
|
508
|
+
}
|
|
509
|
+
declare const _default$5: (props: OurOfficesButtonProps) => React$1.JSX.Element;
|
|
510
|
+
|
|
511
|
+
interface NotificationBandgeProps {
|
|
512
|
+
notificationCount?: number;
|
|
513
|
+
}
|
|
514
|
+
|
|
515
|
+
declare const NotificationBandge: React$1.FC<NotificationBandgeProps>;
|
|
516
|
+
|
|
517
|
+
interface ScrollableListProps {
|
|
518
|
+
data: {
|
|
519
|
+
name: string;
|
|
520
|
+
value: string;
|
|
521
|
+
isError?: boolean;
|
|
522
|
+
}[] | undefined;
|
|
523
|
+
handleSelectCategory: (name: string, value: string) => void;
|
|
524
|
+
containerStyle?: object;
|
|
525
|
+
scrollViewContentStyle?: object;
|
|
526
|
+
itemStyle?: object;
|
|
527
|
+
selectedItemStyle?: object;
|
|
528
|
+
selectedItemTextColor?: string;
|
|
529
|
+
defaultItemTextColor?: string;
|
|
530
|
+
activeTab?: string;
|
|
531
|
+
}
|
|
532
|
+
declare const _default$4: (props: ScrollableListProps) => React$1.JSX.Element;
|
|
533
|
+
|
|
534
|
+
declare const FeedbackForm: ({ title, clearAllData, handleSendFeedback, feedback, setFeedback, }: {
|
|
535
|
+
title: string;
|
|
536
|
+
feedback: string;
|
|
537
|
+
clearAllData?: () => void;
|
|
538
|
+
handleSendFeedback?: () => void;
|
|
539
|
+
setFeedback: (val: string) => void;
|
|
540
|
+
}) => React$1.JSX.Element;
|
|
541
|
+
|
|
542
|
+
interface MobileNumberInputProps {
|
|
543
|
+
defaultCountryCode?: CountryCode;
|
|
544
|
+
defaultCallingCode?: string;
|
|
545
|
+
placeholder: string;
|
|
546
|
+
onChangeText: (text: string) => void;
|
|
547
|
+
value?: string;
|
|
548
|
+
containerStyle?: ViewStyle;
|
|
549
|
+
inputStyle?: TextStyle;
|
|
550
|
+
countryPickerStyle?: ViewStyle;
|
|
551
|
+
callingCodeStyle?: TextStyle;
|
|
552
|
+
getCountryCode: (countryCode: string) => void;
|
|
553
|
+
maxLength: number;
|
|
554
|
+
errorMessage?: string;
|
|
555
|
+
label: string;
|
|
556
|
+
}
|
|
557
|
+
declare const CountryDropDown: ({ defaultCountryCode, defaultCallingCode, placeholder, onChangeText, value, containerStyle, inputStyle, countryPickerStyle, callingCodeStyle, getCountryCode, maxLength, errorMessage, label, }: MobileNumberInputProps) => React$1.JSX.Element;
|
|
558
|
+
|
|
559
|
+
interface CommonTextInputProps {
|
|
560
|
+
label: string;
|
|
561
|
+
value?: string;
|
|
562
|
+
onChangeText: (text: string) => void;
|
|
563
|
+
placeholderText?: string;
|
|
564
|
+
isSecureTextEntry?: boolean;
|
|
565
|
+
activeBorderColor?: string;
|
|
566
|
+
inactiveBorderColor?: string;
|
|
567
|
+
borderRadius?: number;
|
|
568
|
+
inputStyle?: ViewStyle;
|
|
569
|
+
keyboardType?: 'default' | 'numeric' | 'email-address' | 'phone-pad';
|
|
570
|
+
maxLength?: number;
|
|
571
|
+
errorMessage?: string;
|
|
572
|
+
editable?: boolean;
|
|
573
|
+
textColor?: string;
|
|
574
|
+
labelColor?: string;
|
|
575
|
+
pointerEvents?: 'box-none' | 'none' | 'box-only' | 'auto' | undefined;
|
|
576
|
+
handlePress?: () => void;
|
|
577
|
+
}
|
|
578
|
+
declare const CommonTextInput: React$1.FC<CommonTextInputProps>;
|
|
579
|
+
|
|
580
|
+
interface CustomDropdownProps {
|
|
581
|
+
data: {
|
|
582
|
+
[key: string]: string;
|
|
583
|
+
}[];
|
|
584
|
+
labelField?: string;
|
|
585
|
+
valueField?: string;
|
|
586
|
+
label?: string;
|
|
587
|
+
placeholder?: string;
|
|
588
|
+
containerStyle?: ViewStyle;
|
|
589
|
+
dropdownStyle?: ViewStyle;
|
|
590
|
+
placeholderStyle?: TextStyle;
|
|
591
|
+
selectedTextStyle?: TextStyle;
|
|
592
|
+
iconStyle?: ImageStyle;
|
|
593
|
+
labelStyle?: TextStyle;
|
|
594
|
+
defaultValue?: string;
|
|
595
|
+
iconColor?: string;
|
|
596
|
+
itemTextStyle?: TextStyle;
|
|
597
|
+
onValueChange?: (value: string) => void;
|
|
598
|
+
itemContainerStyle?: ViewStyle;
|
|
599
|
+
}
|
|
600
|
+
declare const CustomDropdown: React$1.FC<CustomDropdownProps>;
|
|
601
|
+
|
|
602
|
+
interface CustomSwitchBtnProps {
|
|
603
|
+
value: boolean;
|
|
604
|
+
onValueChange: (value: boolean) => void;
|
|
605
|
+
activeText: string;
|
|
606
|
+
activeTextVariant?: string;
|
|
607
|
+
inActiveText: string;
|
|
608
|
+
inActiveTextVariant?: string;
|
|
609
|
+
containerStyle?: ViewStyle;
|
|
610
|
+
activeTextStyle?: TextStyle;
|
|
611
|
+
inActiveTextStyle?: TextStyle;
|
|
612
|
+
disabled?: boolean;
|
|
613
|
+
circleStyle?: ViewStyle;
|
|
614
|
+
}
|
|
615
|
+
|
|
616
|
+
declare const CustomSwitchBtn: ({ value, onValueChange, disabled, activeText, activeTextVariant, inActiveText, inActiveTextVariant, containerStyle, activeTextStyle, inActiveTextStyle, circleStyle, }: CustomSwitchBtnProps) => React$1.JSX.Element;
|
|
617
|
+
|
|
618
|
+
declare class ToastService implements ToastServiceInterface {
|
|
619
|
+
private toastRef;
|
|
620
|
+
setRef(ref: ToastRef | null): void;
|
|
621
|
+
showToast(message: string, duration?: number, isSuccess?: boolean, buttonText?: string | null, buttonAction?: (() => void) | null): void;
|
|
622
|
+
}
|
|
623
|
+
declare const toastService: ToastService;
|
|
624
|
+
|
|
625
|
+
interface Tag {
|
|
626
|
+
value: string;
|
|
627
|
+
name: string;
|
|
628
|
+
}
|
|
629
|
+
interface TagsComponentProps {
|
|
630
|
+
tagList: Tag[];
|
|
631
|
+
selectedTag: string;
|
|
632
|
+
setSelectedTag: (val: string) => void;
|
|
633
|
+
handleTagPress?: (val: string) => void | undefined;
|
|
634
|
+
}
|
|
635
|
+
declare const TagsComponent: React$1.FC<TagsComponentProps>;
|
|
636
|
+
|
|
637
|
+
interface CustomDocumentPickerProps {
|
|
638
|
+
onDocumentUpload: (base64: string, document?: DocumentPickerResponse) => void;
|
|
639
|
+
title?: string;
|
|
640
|
+
hint?: string;
|
|
641
|
+
maxFileSize?: number;
|
|
642
|
+
fileTypes?: string[];
|
|
643
|
+
containerStyle?: ViewStyle;
|
|
644
|
+
titleStyle?: TextStyle;
|
|
645
|
+
hintStyle?: TextStyle;
|
|
646
|
+
}
|
|
647
|
+
|
|
648
|
+
declare const _default$3: (props: CustomDocumentPickerProps) => React$1.JSX.Element;
|
|
649
|
+
|
|
650
|
+
interface IProps$1 {
|
|
651
|
+
length?: number;
|
|
652
|
+
onComplete?: (otp?: string) => void;
|
|
653
|
+
errorMessage?: string;
|
|
654
|
+
testId?: string;
|
|
655
|
+
otpContainerStyle?: ViewStyle;
|
|
656
|
+
resendOTP?: () => void;
|
|
657
|
+
}
|
|
658
|
+
type OTPInputHandle = {
|
|
659
|
+
reset: () => void;
|
|
660
|
+
};
|
|
661
|
+
|
|
662
|
+
declare const _default$2: (props: IProps$1 & React$1.RefAttributes<OTPInputHandle>) => React$1.JSX.Element;
|
|
663
|
+
|
|
664
|
+
type StatusType = 'Active' | 'Inactive' | 'Completed' | 'Rejected' | 'Count';
|
|
665
|
+
interface IData {
|
|
666
|
+
step: string;
|
|
667
|
+
label?: string;
|
|
668
|
+
status?: StatusType;
|
|
669
|
+
}
|
|
670
|
+
interface IProps {
|
|
671
|
+
containerStyle?: ViewStyle;
|
|
672
|
+
showStepCount?: boolean;
|
|
673
|
+
showStatus?: boolean;
|
|
674
|
+
data: IData[];
|
|
675
|
+
}
|
|
676
|
+
|
|
677
|
+
declare const _default$1: (props: IProps) => React$1.JSX.Element;
|
|
678
|
+
|
|
679
|
+
interface CustomSlideButtonProps {
|
|
680
|
+
label?: string;
|
|
681
|
+
onComplete?: () => void;
|
|
682
|
+
}
|
|
683
|
+
|
|
684
|
+
declare const _default: (props: CustomSlideButtonProps) => React$1.JSX.Element;
|
|
685
|
+
|
|
686
|
+
declare const DHRE_DEFAULT: {
|
|
687
|
+
DH_LINE_GREY_0: string;
|
|
688
|
+
DH_LINE_GREY_100: string;
|
|
689
|
+
DH_LINE_GREY_200: string;
|
|
690
|
+
DH_LINE_GREY_300: string;
|
|
691
|
+
DH_LINE_GREY_400: string;
|
|
692
|
+
DH_LINE_GREY_500: string;
|
|
693
|
+
DH_LINE_GREY_600: string;
|
|
694
|
+
DH_LINE_GREY_700: string;
|
|
695
|
+
DH_LINE_GREY_800: string;
|
|
696
|
+
DH_NETURAL_GRAY_800: string;
|
|
697
|
+
DH_BLUE: string;
|
|
698
|
+
DH_BG_GREY_0: string;
|
|
699
|
+
DH_BG_GREY_100: string;
|
|
700
|
+
DH_BG_GREY_200: string;
|
|
701
|
+
DH_BG_GREY_300: string;
|
|
702
|
+
DH_BG_GREY_400: string;
|
|
703
|
+
DH_BG_GREY_500: string;
|
|
704
|
+
DH_BG_GREY_600: string;
|
|
705
|
+
DH_BG_GREY_700: string;
|
|
706
|
+
DH_BG_GREY_800: string;
|
|
707
|
+
DH_BG_GREY_900: string;
|
|
708
|
+
DH_BG_GREY: string;
|
|
709
|
+
DH_SUCESS: string;
|
|
710
|
+
DH_ERROR: string;
|
|
711
|
+
DH_INFO: string;
|
|
712
|
+
DH_SEMENTIC_ERROR: string;
|
|
713
|
+
DH_SEMENTIC_WARNING: string;
|
|
714
|
+
};
|
|
715
|
+
declare const DHRE_COLORS_TEXT: {
|
|
716
|
+
DH_BLACK: string;
|
|
717
|
+
DH_WHITE: string;
|
|
718
|
+
DH_TEXTDARK: string;
|
|
719
|
+
DH_TEXTLIGHT: string;
|
|
720
|
+
DH_TEXTLIGHTEST: string;
|
|
721
|
+
DH_TEXTDISABLED: string;
|
|
722
|
+
DH_LIGHTGREEN: string;
|
|
723
|
+
};
|
|
724
|
+
|
|
725
|
+
declare const horizontalScale: (size: number) => number;
|
|
726
|
+
declare const verticalScale: (size: number) => number;
|
|
727
|
+
declare const moderateScale: (size: number, factor?: number) => number;
|
|
728
|
+
|
|
729
|
+
declare const copyToClipboard: (textToCopy: string) => void;
|
|
730
|
+
|
|
731
|
+
declare const theme: {
|
|
732
|
+
SURFACE_PRIMARY: {
|
|
733
|
+
light: string;
|
|
734
|
+
dark: string;
|
|
735
|
+
};
|
|
736
|
+
SURFACE_SECONDARY: {
|
|
737
|
+
light: string;
|
|
738
|
+
dark: string;
|
|
739
|
+
};
|
|
740
|
+
SURFACE_TERTIARY: {
|
|
741
|
+
light: string;
|
|
742
|
+
dark: string;
|
|
743
|
+
};
|
|
744
|
+
SURFACE_STATIC: {
|
|
745
|
+
light: string;
|
|
746
|
+
dark: string;
|
|
747
|
+
};
|
|
748
|
+
SURFACE_BRAND_STATIC: {
|
|
749
|
+
light: string;
|
|
750
|
+
dark: string;
|
|
751
|
+
};
|
|
752
|
+
SURFACE_BRAND_TRANSPARENT_STATIC: {
|
|
753
|
+
light: string;
|
|
754
|
+
dark: string;
|
|
755
|
+
};
|
|
756
|
+
SURFACE_DISABLE: {
|
|
757
|
+
light: string;
|
|
758
|
+
dark: string;
|
|
759
|
+
};
|
|
760
|
+
SURFACE_INVERTED: {
|
|
761
|
+
light: string;
|
|
762
|
+
dark: string;
|
|
763
|
+
};
|
|
764
|
+
SURFACE_INVERTED_TRANSPARENT: {
|
|
765
|
+
light: string;
|
|
766
|
+
dark: string;
|
|
767
|
+
};
|
|
768
|
+
SURFACE_DROP_SHADOW: {
|
|
769
|
+
light: string;
|
|
770
|
+
dark: string;
|
|
771
|
+
};
|
|
772
|
+
SURFACE_BLUR: {
|
|
773
|
+
light: string;
|
|
774
|
+
dark: string;
|
|
775
|
+
};
|
|
776
|
+
CONTENT_PRIMARY: {
|
|
777
|
+
light: string;
|
|
778
|
+
dark: string;
|
|
779
|
+
};
|
|
780
|
+
CONTENT_SECONDRY: {
|
|
781
|
+
light: string;
|
|
782
|
+
dark: string;
|
|
783
|
+
};
|
|
784
|
+
CONTENT_DISABLE: {
|
|
785
|
+
light: string;
|
|
786
|
+
dark: string;
|
|
787
|
+
};
|
|
788
|
+
CONTENT_INVERTED: {
|
|
789
|
+
light: string;
|
|
790
|
+
dark: string;
|
|
791
|
+
};
|
|
792
|
+
CONTENT_STATIC: {
|
|
793
|
+
light: string;
|
|
794
|
+
dark: string;
|
|
795
|
+
};
|
|
796
|
+
CONTENT_PRIMARY_STATIC: {
|
|
797
|
+
light: string;
|
|
798
|
+
dark: string;
|
|
799
|
+
};
|
|
800
|
+
CONTENT_SECONDRY_STATIC: {
|
|
801
|
+
light: string;
|
|
802
|
+
dark: string;
|
|
803
|
+
};
|
|
804
|
+
BORDER_PRIMARY: {
|
|
805
|
+
light: string;
|
|
806
|
+
dark: string;
|
|
807
|
+
};
|
|
808
|
+
BORDER_SECONDRY: {
|
|
809
|
+
light: string;
|
|
810
|
+
dark: string;
|
|
811
|
+
};
|
|
812
|
+
BORDER_DISABLE: {
|
|
813
|
+
light: string;
|
|
814
|
+
dark: string;
|
|
815
|
+
};
|
|
816
|
+
BORDER_INVERTED: {
|
|
817
|
+
light: string;
|
|
818
|
+
dark: string;
|
|
819
|
+
};
|
|
820
|
+
BORDER_BRAND_STATIC: {
|
|
821
|
+
light: string;
|
|
822
|
+
dark: string;
|
|
823
|
+
};
|
|
824
|
+
BORDER_BRAND_TRANSPARENT_STATIC: {
|
|
825
|
+
light: string;
|
|
826
|
+
dark: string;
|
|
827
|
+
};
|
|
828
|
+
BORDER_STATIC: {
|
|
829
|
+
light: string;
|
|
830
|
+
dark: string;
|
|
831
|
+
};
|
|
832
|
+
BORDER_TEXT_FIELD: {
|
|
833
|
+
light: string;
|
|
834
|
+
dark: string;
|
|
835
|
+
};
|
|
836
|
+
BORDER_SEPRATOR: {
|
|
837
|
+
light: string;
|
|
838
|
+
dark: string;
|
|
839
|
+
};
|
|
840
|
+
BORDER_SEPERATOR_HEADER: {
|
|
841
|
+
light: string;
|
|
842
|
+
dark: string;
|
|
843
|
+
};
|
|
844
|
+
WARNING: {
|
|
845
|
+
light: string;
|
|
846
|
+
dark: string;
|
|
847
|
+
};
|
|
848
|
+
SUCCESS: {
|
|
849
|
+
light: string;
|
|
850
|
+
dark: string;
|
|
851
|
+
};
|
|
852
|
+
INFO: {
|
|
853
|
+
light: string;
|
|
854
|
+
dark: string;
|
|
855
|
+
};
|
|
856
|
+
ERROR: {
|
|
857
|
+
light: string;
|
|
858
|
+
dark: string;
|
|
859
|
+
};
|
|
860
|
+
};
|
|
861
|
+
|
|
862
|
+
export { Accordion, _default$b as Badge, BottomDrawer, _default$a as Button, Cards, _default$4 as Category, Checkbox as CheckBox, _default$6 as ContactModel, CountryDropDown as CountryPicker, _default$3 as CustomDocumentPicker, CustomDropdown$1 as CustomDropdown, CustomHeader, CustomIcon, CustomLoader, CustomProgressBar, CustomSearchBar, _default as CustomSlideButton, CustomSwitchBtn, _default$c as CustomText, CustomTextInput, CustomTooltip, CustomTypography, DHRE_COLORS_TEXT, DHRE_DEFAULT, DateRangePicker, CustomDropdown as DropDown, FONT_STYLES, FeedbackForm, FileUpload, FontStyle, _default$8 as Line, NotificationBandge, _default$2 as OTPInput, _default$5 as OurOfficesButton, PdfView, PopUp, TagsComponent as SingleSelectionTags, Star as StarRating, _default$1 as Stepper, SwipableList, _default$9 as Tabs, Tags, CommonTextInput as TextInput, Theme, Toast, CustomSwitch as ToggleButton, _default$7 as Topic, copyToClipboard, theme as default, horizontalScale, moderateScale, toastService, verticalScale };
|